projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make the array zeroing explicit using memset.
[openssl.git]
/
crypto
/
ec
/
ecp_nistp224.c
diff --git
a/crypto/ec/ecp_nistp224.c
b/crypto/ec/ecp_nistp224.c
index 653965953b1b613c3091d4b486d6ff7ca97d2c3b..e6f095e7280e317d6feae67e8e0d6d36efb473a3 100644
(file)
--- 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);
}