-
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.
Avoid overflow in ceil(exepack_size/16) in stub.
I noticed this while trying to run tests/maxlen_maxrelocs_compressible.packed.exe, which has an exepack_size of 0xffff. The program doesn't run in DOSBox anyway, unless I reduce the size of the uncompressed data in the test. (I'm guessing it has something to do with a too-large stack pointer.) But if I altered the test to use `len = 0x1f000`, then DOSBox would run it, and before this change crash due to the overflow.
- Loading branch information
David Fifield
committed
Sep 5, 2021
1 parent
c7e2d6d
commit f3629d9
Showing
3 changed files
with
9 additions
and
1 deletion.
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
Binary file not shown.