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:
Jeroen van Rijn
2025-05-24 17:43:00 +02:00
committed by GitHub

View File

@@ -280,7 +280,7 @@ int_atoi :: proc(res: ^Int, input: string, radix := i8(10), allocator := context
}
pos := ch - '+'
if RADIX_TABLE_REVERSE_SIZE <= pos {
if RADIX_TABLE_REVERSE_SIZE <= u32(pos) {
break
}
y := RADIX_TABLE_REVERSE[pos]