[PATCH] dropbear-051: uClinux vfork

Mike Frysinger vapier at gentoo.org
Thu Oct 23 18:43:19 WST 2008


On Thursday 23 October 2008, Jamie Lokier wrote:
> execvp() is ok, even though that
> calls malloc() (in at least one Glibc version I looked at).

yes, most of the exec calls need memory in order to construct an argv[] based 
on the function arguments.  in glibc, i imagine that the memory leaked is 
permanently lost (although ive never looked at the glibc implementation).  in 
uClibc we minimize the leakage by re-using it in the next call to exec that 
needs memory.

thanks for the other tidbits
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20081023/fea1a754/attachment.pgp 


More information about the Dropbear mailing list