[openssl-commits] [openssl] OpenSSL_0_9_8-stable update
Dr. Stephen Henson
steve at openssl.org
Mon Mar 2 15:27:27 UTC 2015
The branch OpenSSL_0_9_8-stable has been updated
via 241cff623e2b0f7c435a3a80ae783c29d994f061 (commit)
from 8a8ba0716796af963947586dca063ca95460010e (commit)
- Log -----------------------------------------------------------------
commit 241cff623e2b0f7c435a3a80ae783c29d994f061
Author: Dr. Stephen Henson <steve at openssl.org>
Date: Wed Feb 18 00:34:59 2015 +0000
Check public key is not NULL.
CVE-2015-0288
PR#3708
Reviewed-by: Matt Caswell <matt at openssl.org>
(cherry picked from commit 28a00bcd8e318da18031b2ac8778c64147cd54f9)
-----------------------------------------------------------------------
Summary of changes:
crypto/x509/x509_req.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crypto/x509/x509_req.c b/crypto/x509/x509_req.c
index c1a2608..31e59c4 100644
--- a/crypto/x509/x509_req.c
+++ b/crypto/x509/x509_req.c
@@ -91,6 +91,8 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
goto err;
pktmp = X509_get_pubkey(x);
+ if (pktmp == NULL)
+ goto err;
i = X509_REQ_set_pubkey(ret, pktmp);
EVP_PKEY_free(pktmp);
if (!i)
More information about the openssl-commits
mailing list