[openssl-commits] [openssl] OpenSSL_1_0_1-stable update

Matt Caswell matt at openssl.org
Mon May 11 11:23:31 UTC 2015


The branch OpenSSL_1_0_1-stable has been updated
       via  1c70c783af31d42f2dc1fc81c4759e87f9ea8f31 (commit)
      from  9dff24e43a20e713f4a3fdcb35b8f1de02f0baae (commit)


- Log -----------------------------------------------------------------
commit 1c70c783af31d42f2dc1fc81c4759e87f9ea8f31
Author: Kurt Cancemi <kurt at x64architecture.com>
Date:   Thu May 7 16:12:33 2015 -0400

    Add missing NULL check in X509V3_parse_list()
    
    Matt's note: I added a call to X509V3err to Kurt's original patch.
    
    RT#3840
    
    Signed-off-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (cherry picked from commit 344c271eb339fc2982e9a3584a94e51112d84584)

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509v3/v3_utl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c
index 65dd1e2..94aaebb 100644
--- a/crypto/x509v3/v3_utl.c
+++ b/crypto/x509v3/v3_utl.c
@@ -285,6 +285,10 @@ STACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line)
     int state;
     /* We are going to modify the line so copy it first */
     linebuf = BUF_strdup(line);
+    if (linebuf == NULL) {
+        X509V3err(X509V3_F_X509V3_PARSE_LIST, ERR_R_MALLOC_FAILURE);
+        goto err;
+    }
     state = HDR_NAME;
     ntmp = NULL;
     /* Go through all characters */


More information about the openssl-commits mailing list