From 80de174281f7bf5ae9799df26153efe476f41b92 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 29 Mar 2019 18:26:53 +1000 Subject: [PATCH] Make the array zeroing explicit using memset. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8611) --- crypto/ec/ecp_nistp224.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/ec/ecp_nistp224.c b/crypto/ec/ecp_nistp224.c index 653965953b..e6f095e728 100644 --- a/crypto/ec/ecp_nistp224.c +++ b/crypto/ec/ecp_nistp224.c @@ -676,7 +676,9 @@ static void felem_contract(felem out, const felem in) */ static void felem_neg(felem out, const felem in) { - widefelem tmp = {0}; + widefelem tmp; + + memset(tmp, 0, sizeof(tmp)); felem_diff_128_64(tmp, in); felem_reduce(out, tmp); } -- 2.25.1