[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Thu Aug 25 09:15:40 UTC 2016


The branch master has been updated
       via  cc069067075d77c7a61e44a253aec917d0b6a2f5 (commit)
      from  5105ba5bec773883e86d8c026d1eac1f1c970669 (commit)


- Log -----------------------------------------------------------------
commit cc069067075d77c7a61e44a253aec917d0b6a2f5
Author: Matt Caswell <matt at openssl.org>
Date:   Thu Aug 25 09:40:17 2016 +0100

    Fix an uninitialised read on an error path
    
    Found by Coverity.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

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

Summary of changes:
 crypto/ocsp/ocsp_ext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ocsp/ocsp_ext.c b/crypto/ocsp/ocsp_ext.c
index 72d2179..b829b2e 100644
--- a/crypto/ocsp/ocsp_ext.c
+++ b/crypto/ocsp/ocsp_ext.c
@@ -257,7 +257,7 @@ static int ocsp_add1_nonce(STACK_OF(X509_EXTENSION) **exts,
      */
     os.length = ASN1_object_size(0, len, V_ASN1_OCTET_STRING);
     if (os.length < 0)
-        goto err;
+        return 0;
 
     os.data = OPENSSL_malloc(os.length);
     if (os.data == NULL)


More information about the openssl-commits mailing list