[openssl-dev] [openssl.org #4466] Memory leak in PKCS12_newpass function

Stephen Henson via RT rt at openssl.org
Thu May 5 14:13:59 UTC 2016


On Mon Mar 21 13:02:56 2016, ramunas.jurgilas at gmail.com wrote:
> I did write function which changes PKCS12 passphrase. I noticed that
> PKCS12_newpass function leaks memory. Memory leak disappears when
> commenting out line where is PKCS12_newpass func.
>
> Below I posted this code which I am using.
> I am using OpneSSL 1.0.2g version.
>
> Could you please give me information what I am doing wrong? Or it is
> known issue?
>

I can confirm there is a leak in that function and it's a bug in OpenSSL.
Looking into it.

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

-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4466
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list