Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode does not safely handle strings of size not multiple of 4 #38

Open
jlcordeiro opened this issue Dec 20, 2022 · 1 comment
Open

Comments

@jlcordeiro
Copy link

Passing the decode method a strings of size so that
(size % 4) != 0

causes the algorithm to try to read memory not belonging to the input data

@br101
Copy link

br101 commented Sep 25, 2023

I see if ( ( pos + 2 < length_of_string ) ... can you explain?

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

No branches or pull requests

2 participants