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

SequentialStreamReader.cs: Cast numbers to ulong before bound check #427

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

KirkLandTrip
Copy link
Contributor

@KirkLandTrip KirkLandTrip commented Oct 7, 2024

Fixes #428

Skip Method: Avoid an integer overflow bug by explicitly casting to ulong before comparing the expression.

Copy link
Owner

@drewnoakes drewnoakes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks very much!

@drewnoakes drewnoakes merged commit 4151d4f into drewnoakes:main Oct 9, 2024
2 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.

Integer overflow in SequentialStreamReader causes wrong length check
2 participants