From 4daf153eed2cdf3c4a096915622563094b0105da Mon Sep 17 00:00:00 2001 From: Tobias Nießen Date: Sun, 21 Jul 2019 10:24:24 +0200 Subject: deps: float 15d7e79 from openssl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The upstream commit fixes an incorrect initialization of memory in rand_lib.c. This fixes all errors that are reported by valgrind during startup. Origin: https://github.com/openssl/openssl/commit/15d7e7997e219fc PR-URL: https://github.com/nodejs/node/pull/28796 Fixes: https://github.com/nodejs/node/issues/28739 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Michaël Zasso Reviewed-By: Colin Ihrig Reviewed-By: Shigeki Ohtsu Reviewed-By: Rich Trott Reviewed-By: Ben Noordhuis Reviewed-By: Sam Roberts --- deps/openssl/openssl/crypto/rand/rand_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'deps/openssl') diff --git a/deps/openssl/openssl/crypto/rand/rand_lib.c b/deps/openssl/openssl/crypto/rand/rand_lib.c index 108b4f5163..c573b66fdc 100644 --- a/deps/openssl/openssl/crypto/rand/rand_lib.c +++ b/deps/openssl/openssl/crypto/rand/rand_lib.c @@ -235,7 +235,9 @@ size_t rand_drbg_get_nonce(RAND_DRBG *drbg, struct { void * instance; int count; - } data = { NULL, 0 }; + } data; + + memset(&data, 0, sizeof(data)); pool = rand_pool_new(0, min_len, max_len); if (pool == NULL) -- cgit v1.2.3