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

Safely handle offset in fd_seek #4557

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Apr 12, 2024

Description

This PR fixes #4556. Passing in a negative offset along with whence::set causes wasmer to erroneously seek to a very large offset.

This commit fixes [wasmerio#4556][1].  Passing in a negative offset along with
`whence::set` causes wasmer to erroneously seek to a very large offset.

[1]: wasmerio#4556
Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

@theduke theduke merged commit c3f2887 into wasmerio:master Apr 12, 2024
59 checks passed
@yagehu yagehu deleted the yagehu/fd-seek-neg branch April 16, 2024 04:21
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::set and a negative offset should error
2 participants