summaryrefslogtreecommitdiff
path: root/deps/openssl
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2019-07-21 10:24:24 +0200
committerTobias Nießen <tniessen@tnie.de>2019-07-23 11:05:09 +0200
commit4daf153eed2cdf3c4a096915622563094b0105da (patch)
tree3a4bcc9493fbafb64a59262fb5216cefb4ddc947 /deps/openssl
parent03317f0e8ea9d0d4718bc29eb80fc54ac5669208 (diff)
downloadandroid-node-v8-4daf153eed2cdf3c4a096915622563094b0105da.tar.gz
android-node-v8-4daf153eed2cdf3c4a096915622563094b0105da.tar.bz2
android-node-v8-4daf153eed2cdf3c4a096915622563094b0105da.zip
deps: float 15d7e79 from openssl
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 <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'deps/openssl')
-rw-r--r--deps/openssl/openssl/crypto/rand/rand_lib.c4
1 files changed, 3 insertions, 1 deletions
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)