Skip to content

Commit 4307a89

Browse files
committed
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. Closes: nodejs#28739
1 parent 1721034 commit 4307a89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/openssl/openssl/crypto/rand/rand_lib.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ size_t rand_drbg_get_nonce(RAND_DRBG *drbg,
235235
struct {
236236
void * instance;
237237
int count;
238-
} data = { NULL, 0 };
238+
} data;
239+
240+
memset(&data, 0, sizeof(data));
239241

240242
pool = rand_pool_new(0, min_len, max_len);
241243
if (pool == NULL)

0 commit comments

Comments
 (0)