-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On a 32 bit system, given the right values for a literal length, it was possible to overflow the bounds check and cause an unsafe use of ptr::copy_overlapping. We avoid the unsafety by moving more of the calculations to 64 bits. Fixes #3.
- Loading branch information
1 parent
99e7b31
commit b5e822d
Showing
2 changed files
with
32 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