« Return to Thread: possible memory leak in zlib compression

Re: possible memory leak in zlib compression

by Ruediger Pluem-2 :: Rate this Message:

Reply to Author | View in Thread



On 05/12/2008 05:38 PM, Dustin Kirkland wrote:

> I'm trying to solve a reproducible memory leak that manifests itself
> with SSL + Apache2:
>     https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/224945
>
> Valgrind, plus our own research, points to a possible memory leak in
> crypto/comp/c_zlib.c in libssl0.9.8g.
>
> We see:
>         struct zlib_state *state = -> (struct zlib_state
> *)OPENSSL_malloc(sizeof(struct zlib_state));
> allocating the data.
>
> However, it does not seem that a zlib_stateful_free_ex_data() is called
> to free it.

I guess you are hit by what is already fixed in the httpd trunk in r654119:

http://svn.apache.org/viewvc?rev=654119&view=rev

Regards

RĂ¼diger
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@...
Automated List Manager                           majordomo@...

 « Return to Thread: possible memory leak in zlib compression

LightInTheBox - Buy quality products at wholesale price