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

Dr. Stephen Henson steve at openssl.org
Thu Aug 4 21:23:54 UTC 2016


The branch OpenSSL_1_0_1-stable has been updated
       via  3c39313f7bba2663961f6085bcd010e61004fe6e (commit)
      from  a199e0c39a21db79e44dc3c66f45726d1092983f (commit)


- Log -----------------------------------------------------------------
commit 3c39313f7bba2663961f6085bcd010e61004fe6e
Author: Kurt Roeckx <kurt at roeckx.be>
Date:   Sat Jul 16 16:56:54 2016 +0200

    Return error when trying to print invalid ASN1 integer
    
    GH: #1322
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Stephen Henson <steve at openssl.org>
    (cherry picked from commit 32baafb2f6fb2a424824df08232d86765f554880)

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

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

diff --git a/crypto/asn1/tasn_prn.c b/crypto/asn1/tasn_prn.c
index 5e7d53e..d163acb 100644
--- a/crypto/asn1/tasn_prn.c
+++ b/crypto/asn1/tasn_prn.c
@@ -446,6 +446,8 @@ static int asn1_print_integer_ctx(BIO *out, ASN1_INTEGER *str,
     char *s;
     int ret = 1;
     s = i2s_ASN1_INTEGER(NULL, str);
+    if (s == NULL)
+        return 0;
     if (BIO_puts(out, s) <= 0)
         ret = 0;
     OPENSSL_free(s);


More information about the openssl-commits mailing list