-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid undefined behavior when parsing bounds.
Signed integer overflow is undefined behavior, so use unsigned long internally while parsing numbers, and substitute INT_MAX at the end if overflow occurred.
- Loading branch information
1 parent
32f4cfd
commit f4dd24c
Showing
1 changed file
with
20 additions
and
7 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