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 653965953b1b613c3091d4b486d6ff7ca97d2c3b..e6f095e7280e317d6feae67e8e0d6d36efb473a3 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);
 }