fix normal math off by one loop error in fast_s_mp_mul_high_digs

pull/281/head
toddouska 2016-01-29 13:54:41 -08:00
parent 6856e5bbe6
commit fa25e5d09d
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}