> [[email protected] - Thu Jan 05 14:40:08 2012]:
> 
> Hi,
> 
> We have a memory leak in OpenSSL when encrypting text to AES-128,
> followed by B64 encoding.
> 
> The basic case is that memory aquired for BIO_new() with b64 is not
> freed by the corresponding BIO_free() call.
> 
> This is present in v 0.9.7 and v 1.0.0. Operating system is Windows 7 UE
> 64-bit, build is Visual Studio 2008, x86, but probably present in other
> environments.
> 
> I've summarised the symptoms as:
> 
> 
> Freeing storage aquired through BIO_new for b64 BIO
> 
> b64           BIO_free_all            
>                       BIO_free        
>                               CRYPTO_free_ex_data
>                                       free_ex_data 
>                                               mx =
> sk_CRYPTO_EX_DATA_FUNCS_num(item->meth); returns 0
>                                               ad->sk == 0, so
> sk_void_free() not called             
>                               b64_free
>                                       0x01f77358 freed
> 
>                               0x01f37098 freed
> 
> Please let me know if you require any further info.
> 

Have you tried calling CRYPTO_cleanup_all_ex_data()?

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to