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

smith: Fix an overflowing subtraction in no-traps mode #827

Merged
merged 1 commit into from Nov 18, 2022

Conversation

alexcrichton
Copy link
Member

The logic which fit data segments to always be in-bounds for the no-traps mode had an underflow when the data segment was larger than the initial size of memory, so this updates the logic to truncate the data segment and then additionally refactors the offset-adjustment logic slightly.

The logic which fit data segments to always be in-bounds for the
no-traps mode had an underflow when the data segment was larger than the
initial size of memory, so this updates the logic to truncate the data
segment and then additionally refactors the offset-adjustment logic
slightly.
@alexcrichton alexcrichton merged commit 1095eaf into bytecodealliance:main Nov 18, 2022
@alexcrichton alexcrichton deleted the fix-trap branch November 18, 2022 18: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.

None yet

2 participants