Skip to content
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

evm/vm: fix EIP3540 header lookalike parsing #2381

Merged
merged 1 commit into from Oct 25, 2022
Merged

Conversation

jochem-brouwer
Copy link
Member

Adds an extra guard in the EOF check to ensure the zero byte is the FORMAT.

Adds 2 VM tests: one with valid EOF code and other with EOF-lookalike code which starts with an unassigned (and thus invalid) byte.

(Please test when running it with the change in EVM enabled and disabled - before testing ensure to npm build the evm before re-running the test in VM)

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Merging #2381 (70726c2) into master (fee6f19) will decrease coverage by 0.53%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 91.37% <ø> (ø)
blockchain 90.21% <ø> (ø)
client 87.04% <ø> (ø)
common 98.13% <ø> (ø)
devp2p 91.54% <ø> (+0.10%) ⬆️
ethash ∅ <ø> (∅)
evm 79.48% <100.00%> (ø)
rlp ∅ <ø> (∅)
statemanager 89.46% <ø> (ø)
trie 90.36% <ø> (ø)
tx ?
util 83.89% <ø> (ø)
vm 85.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@acolytec3 acolytec3 merged commit a85081e into master Oct 25, 2022
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 25, 2022

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2022 EthereumJS Contributor:

GitPOAP: 2022 EthereumJS Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

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.

None yet

3 participants