Skip to content

Commit 1da80f5

Browse files
committed
additional errors
1 parent 9c302bc commit 1da80f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

s_mp_slower_read_radix.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ mp_err s_mp_slower_read_radix(mp_int *a, const char *str, int start, int end, in
1717
char ch = (radix <= 36) ? (char)MP_TOUPPER((int)*_s) : *_s;
1818
unsigned int pos = (unsigned int)(ch - '+');
1919
if (MP_RADIX_MAP_REVERSE_SIZE <= pos) {
20+
err = MP_VAL;
2021
goto LBL_ERR;
2122
}
2223
y = s_mp_radix_map_reverse[pos];
2324
if (y >= radix) {
25+
err = MP_VAL;
2426
goto LBL_ERR;
2527
}
2628
if ((err = mp_mul_d(a, (mp_digit)radix, a)) != MP_OKAY) goto LBL_ERR;

0 commit comments

Comments
 (0)