On Sun, Feb 17, 2013, Nick wrote:

> Calling d2i_RSAPrivateKey_fp with the address of a non-NULL 2nd param
> yields a seg fault for me.  It seems to work if I pass the address of a
> NULL ptr instead (commented out in the repro code below).
> 
> I'm calling it in the same manner that I call d2i_X509_fp which also
> works.
> 

That's because it is attempting to free up parts of a pointer that haven't
been allocated with OPENSSL_malloc. See:

http://www.openssl.org/docs/crypto/d2i_X509.html#WARNINGS

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
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to