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

Add negative length checks during deserialization #1885

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

colinator27
Copy link
Member

Description

Added more safety checks to binary readers, and to deserialization in general (preventing unintended negative lengths/jumps that could lead to infinite loops).

Caveats

None that I can think of, unless new bugs are accidentally introduced.

Notes

Split up from previous serialization cleanup/optimization PR.

@Miepee
Copy link
Contributor

Miepee commented Aug 23, 2024

conflicts

@Miepee Miepee merged commit 3dd882b into master Aug 23, 2024
5 checks passed
@colinator27 colinator27 deleted the add-negative-length-checks branch August 23, 2024 19:58
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