From: Pauli Date: Fri, 29 Mar 2019 08:26:53 +0000 (+1000) Subject: Make the array zeroing explicit using memset. X-Git-Tag: openssl-3.0.0-alpha1~2279 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80de174281f7bf5ae9799df26153efe476f41b92;p=oweals%2Fopenssl.git Make the array zeroing explicit using memset. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8611) --- 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); }