Skip to content

Conversation

@FrancisTheCat
Copy link
Contributor

Previously this could have been used to leak up to 128 * size_of(int) = 1KB of data from the data section when the input string contained non-ascii characters, given that bounds checks are disabled here for performance reasons. The bigger table fixes this without introducing overhead from checking and makes the base64 package resemble the base32 package more closely.

@FrancisTheCat
Copy link
Contributor Author

Actually the exploit is somewhat less potent than I thought, it is possible to leak some data but only about every one out of every eight bytes following the decoding table in memory, still it should be fixed

@Kelimion Kelimion merged commit f420755 into odin-lang:master Nov 22, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants