Make the array zeroing explicit using memset.
authorPauli <paul.dale@oracle.com>
Fri, 29 Mar 2019 08:26:53 +0000 (18:26 +1000)
committerPauli <paul.dale@oracle.com>
Fri, 29 Mar 2019 10:52:00 +0000 (20:52 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8611)

crypto/ec/ecp_nistp224.c

index 6539659..e6f095e 100644 (file)
@@ -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);
 }