-
-
Notifications
You must be signed in to change notification settings - Fork 871
fix[codegen]: relax the filter for augassign oob check #4497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
charles-cooper
merged 12 commits into
vyperlang:master
from
charles-cooper:fix/augassign2
Feb 27, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ba5b836
fix[codegen]: relax the filter for augassign oob check
charles-cooper 6393b2f
update test
charles-cooper 57385ae
add a test
charles-cooper 4151f0c
remove a comment
charles-cooper 44da06b
add another test
charles-cooper ff1bfeb
Merge branch 'master' into fix/augassign2
charles-cooper dbdd54d
add transient overlap tests
cyberthirst 67a185c
Merge pull request #61 from cyberthirst/augassign-tests
charles-cooper c2fdbd9
clarify tests
charles-cooper 6a5c303
fix a test
charles-cooper 42382ba
fix test for pre-cancun
charles-cooper be05638
whitespace
charles-cooper 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -293,7 +293,9 @@ def parse_AugAssign(self): | |
| if var.typ._is_prim_word: | ||
| continue | ||
| # oob - GHSA-4w26-8p97-f4jp | ||
| if var in right.variable_writes or right.contains_risky_call: | ||
| if var in right.variable_writes or ( | ||
| var.is_state_variable() and right.contains_writeable_call | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: immutables count as state variables |
||
| ): | ||
| raise CodegenPanic("unreachable") | ||
|
|
||
| with target.cache_when_complex("_loc") as (b, target): | ||
|
|
||
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.