Skip to content

Commit a1b44b6

Browse files
committed
Fix issues from infer diff report: init mp_digit to 0.
1 parent f222adf commit a1b44b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2495,7 +2495,7 @@ static int RsaFunctionPrivate(mp_int* tmp, RsaKey* key, WC_RNG* rng)
24952495
{
24962496
int ret = 0;
24972497
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
2498-
mp_digit mp;
2498+
mp_digit mp = 0;
24992499
DECL_MP_INT_SIZE_DYN(rnd, mp_bitsused(&key->n), RSA_MAX_SIZE);
25002500
DECL_MP_INT_SIZE_DYN(rndi, mp_bitsused(&key->n), RSA_MAX_SIZE);
25012501
#endif /* WC_RSA_BLINDING && !WC_NO_RNG */

0 commit comments

Comments
 (0)