forked from scroll-tech/zkevm-circuits
-
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 overflow cases of
ErrorReturnDataOutOfBound
(scroll-tech#1321)
### Description Fix overflow cases of `ErrorReturnDataOutOfBound` state. Found by `testool` cases (`bufferSrcOffset_d108(fail)_g0_v0`). ### Type of change - [X] Bug fix (non-breaking change which fixes an issue) ### How Has This Been Tested? Refactor unit-test cases of `ErrorReturnDataOutOfBound` to 4 categories: - data_offset > u64::MAX - data_offset + size > U256::MAX - data_offset + size (mod U256) > u64::MAX - data_offset + size > return_data_length
- Loading branch information
1 parent
5c72f27
commit 2a1074a
Showing
2 changed files
with
96 additions
and
71 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