The branch master has been updated
       via  94b5d7aae99e117ddfffa82b98de403be77279a5 (commit)
      from  1d2491e20e1400def31eb1d1daea5583bfc7ea38 (commit)


- Log -----------------------------------------------------------------
commit 94b5d7aae99e117ddfffa82b98de403be77279a5
Author: Richard Levitte <[email protected]>
Date:   Tue Sep 5 12:42:58 2017 +0200

    Fix OSSL_STORE's 'file' loader: make sure peekbuf is initialised
    
    This quiets down complaints about the use of uninitialised memory
    
    [extended tests]
    
    Reviewed-by: Rich Salz <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/4340)

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

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

diff --git a/crypto/store/loader_file.c b/crypto/store/loader_file.c
index 1c794ef..00d0302 100644
--- a/crypto/store/loader_file.c
+++ b/crypto/store/loader_file.c
@@ -855,7 +855,7 @@ static OSSL_STORE_LOADER_CTX *file_open(const 
OSSL_STORE_LOADER *loader,
         }
     } else {
         BIO *buff = NULL;
-        char peekbuf[4096];
+        char peekbuf[4096] = { 0, };
 
         if ((buff = BIO_new(BIO_f_buffer())) == NULL
             || (ctx->_.file.file = BIO_new_file(path, "rb")) == NULL) {
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to