[openssl-dev] [openssl.org #4433] Memory leak in X509_REQ_to_X509

Ramunas Jurgilas via RT rt at openssl.org
Tue Mar 15 15:17:12 UTC 2016


Hello OpenSSL Team,

During memory leak hunting on iOS platform I noticed, that function X509_REQ_to_X509 generates memory. Bellow you can found code snapshot.

As well I would like to know do you plan to fix this memory leak? If yes, then when?

Best regards,
Ramunas

X509_REQ *req = NULL;

EVP_PKEY *key = EVP_PKEY_new();
// Setup key ...

X509_REQ_set_pubkey(req,key);
X509_REQ_sign(req,key,EVP_sha256())
X509 *cert = X509_REQ_to_X509(req, 365, key); // Memory leak here!!!

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



More information about the openssl-dev mailing list