-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes two instances where an integer overflow could occur if sh.st.tmout exceeded INT_MAX after being multiplied by 1000. This was first patched in Solaris[*], although the Solaris patch fails to address the overflow in xec.c. This approach only works on 64-bit architectures, as on 32-bit, long isn't 64 bits in length. Fixing that will require transitioning sh_timeradd and all related functions to Sflong_t. For now, this commit makes the TMOUT fix friendlier to 32-bit long. [*] https://github.com/oracle/solaris-userland/blob/e478b48/components/ksh93/patches/36096724.patch
- Loading branch information
Showing
4 changed files
with
13 additions
and
11 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
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
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
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