Fix coverity 1498607: uninitialised value
authorPauli <pauli@openssl.org>
Wed, 16 Mar 2022 03:45:44 +0000 (14:45 +1100)
committerPauli <pauli@openssl.org>
Sun, 20 Mar 2022 20:59:14 +0000 (07:59 +1100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17897)

(cherry picked from commit 70cd9a51911e9a4e2f24e29ddd84fa9fcb778b63)

crypto/ec/ecp_nistz256.c

index a9982caef6cd88250d9006c772506367a74cdda9..8a1a348817fa62364f1f0c1f095a99a066d15164 100644 (file)
@@ -978,6 +978,7 @@ __owur static int ecp_nistz256_points_mul(const EC_GROUP *group,
         return 0;
     }
 
+    memset(&p, 0, sizeof(p));
     BN_CTX_start(ctx);
 
     if (scalar) {