Am Fri, 12 Apr 2013 17:04:08 +1000 schrieb Manu <turkey...@gmail.com>:
> > toStringz is used liberally; alternatively, alloca() could allocate > the c-string's on the stack and zero terminate them there, passing a > pointer to the stack string to the OS functions. > Are you sure this is possible in this specific case? The execve manpage says: execve() does not return on success, and the text, data, bss, and _stack_ of the calling process are overwritten by that of the program loaded. There is no documentation if the environment variables are copied internally in execve.