From a1b44b621475890d6ed547b2747e50e88dff0796 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 13 Dec 2023 17:17:49 -0600 Subject: [PATCH] Fix issues from infer diff report: init mp_digit to 0. --- wolfcrypt/src/rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index eb40fc46c..514ffb235 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -2495,7 +2495,7 @@ static int RsaFunctionPrivate(mp_int* tmp, RsaKey* key, WC_RNG* rng) { int ret = 0; #if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG) - mp_digit mp; + mp_digit mp = 0; DECL_MP_INT_SIZE_DYN(rnd, mp_bitsused(&key->n), RSA_MAX_SIZE); DECL_MP_INT_SIZE_DYN(rndi, mp_bitsused(&key->n), RSA_MAX_SIZE); #endif /* WC_RSA_BLINDING && !WC_NO_RNG */