forked from gimli-rs/gimli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let arithmetic overflows wrap when executing line programs
The DWARF spec isn't clear on how to handle overflow, but there is a small chance some random toolchain in the wild relies on overflow to do hacky subtraction of the current row's address. And wrapping is faster than checking for overflow and returning an error anyways. So we just do wrapping. /me shrugs Fixes gimli-rs#506
- Loading branch information
Showing
1 changed file
with
75 additions
and
40 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