diff options
author | Richard Levitte <levitte@openssl.org> | 2018-11-15 13:45:31 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-11-15 15:35:07 +0100 |
commit | c7af8b0a267981c25cc42643493289a01ffe1bbd (patch) | |
tree | 3ab60af8c7c39311f77124dfec56d40f61abac4c | |
parent | 157af9be4106c951afadf7b12afe4cbaba0c0823 (diff) |
test/siphash_internal_test.c: ensure the SIPHASH structure is zeroed
Fixes #7641
[extended tests]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7642)
-rw-r--r-- | test/siphash_internal_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/siphash_internal_test.c b/test/siphash_internal_test.c index dfdce48d13..ae9082bc7e 100644 --- a/test/siphash_internal_test.c +++ b/test/siphash_internal_test.c @@ -169,7 +169,7 @@ static TESTDATA tests[] = { static int test_siphash(int idx) { - SIPHASH siphash; + SIPHASH siphash = { 0, }; TESTDATA test = tests[idx]; unsigned char key[SIPHASH_KEY_SIZE]; unsigned char in[64]; @@ -257,7 +257,7 @@ static int test_siphash(int idx) static int test_siphash_basic(void) { - SIPHASH siphash; + SIPHASH siphash = { 0, }; unsigned char key[SIPHASH_KEY_SIZE]; unsigned char output[SIPHASH_MAX_DIGEST_SIZE]; |