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:58:45 +0000 (07:58 +1100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17897)

crypto/ec/ecp_nistz256.c

index ccd6895cc545c168885ec8cb6531b5a7ee7568ff..77a67380ca8bbd65e2a6843b874851d0941b6828 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) {