The branch master has been updated
       via  10c3c1c1ec41ce16e51b92bb18fab92d1a42b49c (commit)
      from  358ffa05cd3a088822c7d06256bc87516d918798 (commit)


- Log -----------------------------------------------------------------
commit 10c3c1c1ec41ce16e51b92bb18fab92d1a42b49c
Author: Rich Salz <[email protected]>
Date:   Thu Jun 28 18:13:54 2018 -0400

    Zero-fill IV by default.
    
    Fixes uninitialized memory read reported by Nick Mathewson
    
    Reviewed-by: Tim Hudson <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/6603)

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

Summary of changes:
 crypto/pem/pem_lib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 7c82561..5c21a86 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -488,6 +488,7 @@ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO 
*cipher)
     char *dekinfostart, c;
 
     cipher->cipher = NULL;
+    memset(cipher->iv, 0, sizeof(cipher->iv));
     if ((header == NULL) || (*header == '\0') || (*header == '\n'))
         return 1;
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to