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

Fix fd_seek underflow #4590

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Fix fd_seek underflow #4590

merged 1 commit into from
Apr 22, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Apr 22, 2024

This commit adds a checked subtraction to fd_seek so that passing in a large negative offset does not underflow.

fixes #4589

This commit adds a checked subtraction to `fd_seek` so that passing in a
large negative offset does not underflow.

fixes wasmerio#4589
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

It seems all tests are passing except of one that has nothing to do with this PR. We'll fix separately. Thanks for the fix @yagehu

@syrusakbary syrusakbary merged commit 21dead6 into wasmerio:master Apr 22, 2024
59 of 61 checks passed
@theduke
Copy link
Contributor

theduke commented Apr 22, 2024

@yagehu thanks , again!

@yagehu yagehu deleted the yagehu/seek-neg branch April 22, 2024 23:30
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.

fd_seek with whence::cur underflows
3 participants