Skip to content

core/vm: include operand in invalid eip-8024 errors - #34635

Merged
MariusVanDerWijden merged 1 commit into
ethereum:masterfrom
gzliudan:fix-immediates
Apr 13, 2026
Merged

MariusVanDerWijden merged 1 commit into
ethereum:masterfrom
gzliudan:fix-immediates

Conversation

@gzliudan

@gzliudan gzliudan commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

Return ErrInvalidOpCode with the executing opcode and offending immediate for forbidden DUPN, SWAPN, and EXCHANGE operands. Extend TestEIP8024_Execution to assert both opcode and operand for all invalid-immediate paths.

@gzliudan
gzliudan requested a review from rjl493456442 as a code owner April 2, 2026 10:56
Comment thread core/vm/instructions.go Resolved
Return ErrInvalidOpCode with the executing opcode and offending immediate for forbidden DUPN, SWAPN, and EXCHANGE operands.
Extend TestEIP8024_Execution to assert both opcode and operand for all invalid-immediate paths.
@gzliudan gzliudan changed the title core/vm: report executing opcode for invalid eip-8024 immediates core/vm: include operand in invalid eip-8024 errors Apr 2, 2026
@gzliudan
gzliudan requested a review from rjl493456442 April 2, 2026 15:39

@jrhea jrhea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good change to me.

@MariusVanDerWijden MariusVanDerWijden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@MariusVanDerWijden MariusVanDerWijden added this to the 1.17.3 milestone Apr 13, 2026
@MariusVanDerWijden
MariusVanDerWijden merged commit 5b7511e into ethereum:master Apr 13, 2026
9 of 10 checks passed
@gzliudan
gzliudan deleted the fix-immediates branch April 13, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants