[openssl-commits] [openssl] OpenSSL source code branch master updated. 2c60925d1ccc0b96287bdc9acb90198e7180d642

Rich Salz rsalz at openssl.org
Sun Jan 4 19:51:46 UTC 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSSL source code".

The branch, master has been updated
       via  2c60925d1ccc0b96287bdc9acb90198e7180d642 (commit)
      from  95275599399e277e71d064790a1f828a99fc661a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2c60925d1ccc0b96287bdc9acb90198e7180d642
Author: Rich Salz <rsalz at openssl.org>
Date:   Sun Jan 4 14:51:04 2015 -0500

    RT2914: NULL check missing in X509_name_canon
    
    Check for NULL return from X509_NAME_ENTRY_new()
    
    Reviewed-by: Dr. Stephen Henson <steve at openssl.org>

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

Summary of changes:
 crypto/asn1/x_name.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c
index d7c2318..22da570 100644
--- a/crypto/asn1/x_name.c
+++ b/crypto/asn1/x_name.c
@@ -350,6 +350,8 @@ static int x509_name_canon(X509_NAME *a)
 			set = entry->set;
 			}
 		tmpentry = X509_NAME_ENTRY_new();
+		if (!tmpentry)
+			goto err;
 		tmpentry->object = OBJ_dup(entry->object);
 		if (!asn1_string_canon(tmpentry->value, entry->value))
 			goto err;


hooks/post-receive
-- 
OpenSSL source code


More information about the openssl-commits mailing list