Skip to content

IR codegen: Clean dirty storage array indices - #16911

Open
felix314159 wants to merge 1 commit into
argotorg:developfrom
felix314159:develop
Open

IR codegen: Clean dirty storage array indices#16911
felix314159 wants to merge 1 commit into
argotorg:developfrom
felix314159:develop

Conversation

@felix314159

Copy link
Copy Markdown

Description

Clean storage-array index expressions by converting them to uint256 before the via-IR bounds check. Before this PR dirty upper bits in a narrow index could cause an unexpected out-of-bounds panic. I also added regression test covering optimized + unoptimized legacy and via-IR compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant