The branch OpenSSL_1_0_2-stable has been updated
       via  32baafb2f6fb2a424824df08232d86765f554880 (commit)
      from  81f69e5b69b8e87ca5d7080ab643ebda7808542c (commit)


- Log -----------------------------------------------------------------
commit 32baafb2f6fb2a424824df08232d86765f554880
Author: Kurt Roeckx <k...@roeckx.be>
Date:   Sat Jul 16 16:56:54 2016 +0200

    Return error when trying to print invalid ASN1 integer
    
    GH: #1322
    (cherry picked from commit 5e3553c2de9a365479324b8ba8b998f0cce3e527)
    
    Reviewed-by: Rich Salz <rs...@openssl.org>
    Reviewed-by: Stephen Henson <st...@openssl.org>

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

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 1dae46b..f628cad 100644
--- a/crypto/asn1/tasn_prn.c
+++ b/crypto/asn1/tasn_prn.c
@@ -447,6 +447,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);
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to