Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smith: Fix an overflowing subtraction in no-traps mode (#827)
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.
- Loading branch information
1 parent
a436ce0
commit 1095eaf
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters