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

Decoding bytes/charptr with large bounds can crash #3534

Closed
gsnedders opened this issue Apr 20, 2020 · 0 comments · Fixed by #3535
Closed

Decoding bytes/charptr with large bounds can crash #3534

gsnedders opened this issue Apr 20, 2020 · 0 comments · Fixed by #3535

Comments

@gsnedders
Copy link
Contributor

Very similar to #3531, spotted after looking through the rest of the file.

s[PY_SSIZE_T_MAX:PY_SSIZE_T_MIN].decode('UTF-8')

…this hits a signed integer overflow, which is undefined behaviour, and can cause a crash (or whatever, give it's UB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants