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

Disallow truncated data in toplevel containers #921

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Jun 5, 2024

This change only affects what is allowed in tests. Truncated data sections are not allowed at top level now, to check truncated data rules, tests should put it into subcontainers.

@gumb0 gumb0 force-pushed the tests-fobid-runtime-truncated branch 2 times, most recently from f71b993 to ebc6635 Compare June 5, 2024 12:27
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.08%. Comparing base (64d1db5) to head (c65a79f).

Current head c65a79f differs from pull request most recent head d813e73

Please upload reports for the commit d813e73 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
- Coverage   95.15%   95.08%   -0.07%     
==========================================
  Files         140      138       -2     
  Lines       15785    15771      -14     
==========================================
- Hits        15020    14996      -24     
- Misses        765      775      +10     
Flag Coverage Δ
ethereum_tests ?
ethereum_tests_silkpre 18.40% <0.00%> (-0.07%) ⬇️
execution_spec_tests 17.88% <0.00%> (-0.08%) ⬇️
unittests 90.24% <90.00%> (-0.03%) ⬇️

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

Files Coverage Δ
lib/evmone/eof.hpp 100.00% <100.00%> (ø)
lib/evmone/instructions_calls.cpp 98.66% <ø> (-0.02%) ⬇️
test/state/host.cpp 98.26% <100.00%> (ø)
test/unittests/eof_validation.cpp 94.23% <100.00%> (+0.11%) ⬆️
test/unittests/eof_validation_test.cpp 99.19% <100.00%> (+0.01%) ⬆️
lib/evmone/eof.cpp 86.35% <71.42%> (-0.63%) ⬇️

... and 18 files with indirect coverage changes

@gumb0 gumb0 force-pushed the tests-fobid-runtime-truncated branch from ebc6635 to 3812727 Compare June 5, 2024 12:28
@gumb0 gumb0 marked this pull request as ready for review June 5, 2024 12:31
@gumb0 gumb0 self-assigned this Jun 5, 2024
@gumb0 gumb0 force-pushed the tests-fobid-runtime-truncated branch from 3812727 to c65a79f Compare June 5, 2024 12:40
@gumb0
Copy link
Member Author

gumb0 commented Jun 6, 2024

This needs updating tests in ethereum/tests

cc @hugo-dc

gumb0 and others added 3 commits June 6, 2024 20:20
Disallow truncated data section in toplevel containers. This is now
only allowed in some subcontainers.

Co-authored-by: Paweł Bylica <pawel@ethereum.org>
The check is now part of validation of toplevel container. For creation transaction this is still required to be checked before validation to find out container/input data split.
@chfast chfast force-pushed the tests-fobid-runtime-truncated branch from c65a79f to d813e73 Compare June 6, 2024 19:16
@chfast chfast added the EOF label Jun 6, 2024
@chfast chfast self-assigned this Jun 6, 2024
@chfast chfast enabled auto-merge June 6, 2024 19:18
@chfast chfast merged commit 705409f into master Jun 6, 2024
23 checks passed
@chfast chfast deleted the tests-fobid-runtime-truncated branch June 6, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants