From 062f3efa6d527986dd1217086627b043d6943771 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 2 Aug 2017 10:29:34 -0600 Subject: [PATCH] adjust integer.c for loop range --- wolfcrypt/src/integer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index c91d8331a..1d25ba831 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -3177,7 +3177,7 @@ int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs) { mp_digit *tmpc; tmpc = c->dp; - for (ix = 0; ix < pa+1; ix++) { + for (ix = 0; ix < pa; ix++) { /* JRB, +1 could read uninitialized data */ /* now extract the previous digit [below the carry] */ *tmpc++ = W[ix]; }