mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #5210 from Barinzaya/core-math-big-range-check
Fix range check in `core:math/big`'s `int_atoi`
This commit is contained in:
@@ -280,7 +280,7 @@ int_atoi :: proc(res: ^Int, input: string, radix := i8(10), allocator := context
|
|||||||
}
|
}
|
||||||
|
|
||||||
pos := ch - '+'
|
pos := ch - '+'
|
||||||
if RADIX_TABLE_REVERSE_SIZE <= pos {
|
if RADIX_TABLE_REVERSE_SIZE <= u32(pos) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
y := RADIX_TABLE_REVERSE[pos]
|
y := RADIX_TABLE_REVERSE[pos]
|
||||||
|
|||||||
Reference in New Issue
Block a user