diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-24 17:43:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 17:43:00 +0200 |
| commit | 0a6dced9daf6baa1b2e81b7d5542899ca6022c7e (patch) | |
| tree | 707d00b153dfe53eeb515f8fbb93b9d926c31100 | |
| parent | 142dd58b279b6d7291d75a1f8158fe315b7104c0 (diff) | |
| parent | d402b7408ddc29ddd3e7fb260e43375df11c65e8 (diff) | |
Merge pull request #5210 from Barinzaya/core-math-big-range-check
Fix range check in `core:math/big`'s `int_atoi`
| -rw-r--r-- | core/math/big/radix.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/big/radix.odin b/core/math/big/radix.odin index a5100e478..a1c25b55e 100644 --- a/core/math/big/radix.odin +++ b/core/math/big/radix.odin @@ -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] |