httpd: memory hole in function addEnv() and more

Vladimir N. Oleynik dzo at simtreas.ru
Mon Sep 5 10:05:03 UTC 2005


Richard,

>>No.
>>man putenv()
>>see libc incompatibility memory allocated sections.
> 
> And as I saw, it is always called in the cgi child, so there is no memory
> leak in long time.

Thanks that have reminded this moment. ;-)
But, special for addEnv() really have memory leak if setenv() have internal
memory allocator.

Try to correct above what I thought much too much, trying
to make optimum on the size, can be to the detriment of beauty of a code.


--w
vodz




More information about the busybox mailing list