This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 854
handle gas uint overflow (ErrorGasUintOverflow) #1564
Merged
DreamWuGit
merged 10 commits into
privacy-scaling-explorations:main
from
scroll-tech:gas_uint_overflow
Sep 13, 2023
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
566a36a
handle gas uint overflow for memory copy, log
DreamWuGit 9fa7d9e
update oog call, callcommongadget
DreamWuGit 1d267b6
rebase main& resolve conflict
DreamWuGit 55630fb
fix commom call gadget
DreamWuGit ff61880
add memory copy overflow test
DreamWuGit 6066ad5
add oog call overflow tests
DreamWuGit 7c859c1
Merge branch 'main' into gas_uint_overflow
DreamWuGit ae1c365
small update
DreamWuGit c64c91e
Merge branch 'gas_uint_overflow' of https://github.com/scroll-tech/zk…
DreamWuGit 2236916
fix comments
DreamWuGit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed we fall back to manual offset counting here. Is it because
cb.rw_counter_offset()
doesn't work here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it works, but I feel
cb.rw_counter_offset()
is indirect way for calculating the rw offset. we can not know how therwc
change by reading the code directly, it is always right. I prefer old way of it. so keep it when i touch it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue #1599 for discussion .