mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
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 <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4340)
This commit is contained in:
parent
1d2491e20e
commit
94b5d7aae9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user