Branch: Tag:

2015-02-17

2015-02-17 16:30:40 by Tobias S. Josefowitz <tobij@tobij.de>

Stdio.exece(): Don't give away refs to members from the env mapping

Because it's not too good in the case we fail to exec(), at least.

1583: Inside #if defined(HAVE_EXECVE)
   }       NEW_MAPPING_LOOP(en->data) { -  push_string(k->ind.u.string); +  ref_push_string(k->ind.u.string);    push_text("="); -  push_string(k->val.u.string); +  ref_push_string(k->val.u.string);    f_add(3);    env[i++]=sp[-1].u.string->str;    dmalloc_touch_svalue(sp-1);