mirror of https://github.com/wolfSSL/wolfssl.git
fix normal math off by one loop error in fast_s_mp_mul_high_digs
parent
6856e5bbe6
commit
fa25e5d09d
|
@ -3763,7 +3763,7 @@ int fast_s_mp_mul_high_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
|
|||
register mp_digit *tmpc;
|
||||
|
||||
tmpc = c->dp + digs;
|
||||
for (ix = digs; ix <= pa; ix++) {
|
||||
for (ix = digs; ix < pa; ix++) { /* TAO, <= could potentially overwrite */
|
||||
/* now extract the previous digit [below the carry] */
|
||||
*tmpc++ = W[ix];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue