[openssl-users] freeing of X509_CRL object
Salz, Rich
rsalz at akamai.com
Fri May 11 10:10:22 UTC 2018
The print routine does not free anything.
From: Raghavendra a <raghuasit at gmail.com>
Reply-To: openssl-users <openssl-users at openssl.org>
Date: Friday, May 11, 2018 at 5:53 AM
To: openssl-users <openssl-users at openssl.org>
Subject: [openssl-users] freeing of X509_CRL object
Hi All,
In my program,
converting X509_CRL object to string format using X509_CRL_print and BIO_get_mem_data. after that if de-allocate _x509crl using X509_CRL_free. it is crashing with below reason.
Valgrind output:
==31919== Invalid read of size 4
==31919== at 0xB475EF2: CRYPTO_atomic_add (threads_pthread.c:155)
==31919== by 0xB355537: asn1_do_lock (tasn_utl.c:79)
==31919== by 0xB352767: asn1_item_embed_free (tasn_fre.c:88)
==31919== by 0xB3528D4: ASN1_item_free (tasn_fre.c:20)
not sure if X509_CRL_print de-allocates some part of _x509crl , external freeing of X509_CRL again leading to double free?
Please help on this issue.
Regards,
Raghavendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20180511/fbfd6aef/attachment.html>
More information about the openssl-users
mailing list