diff options
author | Pauli <paul.dale@oracle.com> | 2020-02-16 09:02:38 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-17 10:29:05 +0100 |
commit | 86cde3187d9acf6f331daff79ff2de87e86c6dc7 (patch) | |
tree | c8da1c3a7f97f6243e65608eaaa6acd94bf59093 /crypto/ffc | |
parent | Coverity 1458438: fix uninitialised memory access. (diff) | |
download | openssl-86cde3187d9acf6f331daff79ff2de87e86c6dc7.tar.xz openssl-86cde3187d9acf6f331daff79ff2de87e86c6dc7.zip |
ffc: use sizeof(*pointer) instead of sizeof(struct) in memset(3) call.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11101)
Diffstat (limited to 'crypto/ffc')
-rw-r--r-- | crypto/ffc/ffc_params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ffc/ffc_params.c b/crypto/ffc/ffc_params.c index 0c9d1a5d39..cb8987b64d 100644 --- a/crypto/ffc/ffc_params.c +++ b/crypto/ffc/ffc_params.c @@ -15,7 +15,7 @@ void ffc_params_init(FFC_PARAMS *params) { - memset(params, 0, sizeof(FFC_PARAMS)); + memset(params, 0, sizeof(*params)); params->pcounter = -1; params->gindex = FFC_UNVERIFIABLE_GINDEX; } |