From 53eb5d2e5a17038c22a4330694b73fde9b5634b0 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Mon, 13 Dec 2021 10:16:55 -0600 Subject: [PATCH] Fix _sp_exptmod_base_2 to init vars. --- wolfcrypt/src/sp_int.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index 964f1a27e..a59b0c6ed 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -8567,14 +8567,14 @@ static int _sp_exptmod_mont_ex(sp_int* b, sp_int* e, int bits, sp_int* m, */ static int _sp_exptmod_base_2(sp_int* e, int digits, sp_int* m, sp_int* r) { - int i; + int i = 0; int j; - int c; + int c = 0; int y; int err = MP_OKAY; sp_int* t = NULL; sp_int* tr = NULL; - sp_int_digit mp = 0, n; + sp_int_digit mp = 0, n = 0; DECL_SP_INT_ARRAY(d, m->used * 2 + 1, 2); if (0) {