forked from vyperlang/vyper
-
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.
fix[codegen]: overflow check in
slice()
(vyperlang#3818)
the buffer out-of-bounds check in slice() does not take into account the possibility for arithmetic overflow. this commit fixes the oob check by adding an overflow check. it also refactors the slice check into a helper function, and adds relevant tests. patches GHSA-9x7f-gwxq-6f2c. --------- Co-authored-by: cyberthirst <[email protected]>
- Loading branch information
1 parent
8eab815
commit cc25c71
Showing
2 changed files
with
79 additions
and
6 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