From e8d97c9b1e2552cd2e6aa90c024b8eaaa54251b0 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 10 Mar 2017 09:36:29 -0700 Subject: [PATCH] make test buffers large enough for results --- wolfcrypt/test/test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 9d9132437..bc9db1198 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -1883,7 +1883,7 @@ int hash_test(void) ret = wc_HashUpdate(&hash, typesBad[i], data, sizeof(data)); if (ret != BAD_FUNC_ARG) return -4120 - i; - ret = wc_HashFinal(&hash, typesBad[i], data); + ret = wc_HashFinal(&hash, typesBad[i], out); if (ret != BAD_FUNC_ARG) return -4130 - i; } @@ -1902,7 +1902,7 @@ int hash_test(void) ret = wc_HashUpdate(&hash, typesGood[i], data, sizeof(data)); if (ret != exp_ret) return -4150 - i; - ret = wc_HashFinal(&hash, typesGood[i], data); + ret = wc_HashFinal(&hash, typesGood[i], out); if (ret != exp_ret) return -4160 - i; ret = wc_HashGetOID(typesGood[i]); @@ -10178,7 +10178,7 @@ static int ecc_sig_test(WC_RNG* rng, ecc_key* key) int ret; word32 sigSz; int size; - byte out[65]; + byte out[75]; byte in[] = "Everyone gets Friday off."; word32 inLen = (word32)XSTRLEN((char*)in);