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

refactor[test]: add sanity checks to abi decode tests #4096

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

cyberthirst
Copy link
Collaborator

What I did

  • added sanity checks to abi decode tests to ensure that we're never failing on calldatasize
  • also split the creation of payload into two parts when calling target contract with low-level msg_call to increase readability
  • depends on fix[codegen]: recursive dynarray oob check #4091 because the tests from there were also refactored

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

# parent payload - this word will be considered as the head of the abi-encoded inner array
# and it will be added to base ptr leading to an arithmetic overflow
2**256 - 0x60,
2**256
- 0x60,
Copy link
Member

Choose a reason for hiding this comment

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

weird formatting

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

result of linting

Copy link

codecov bot commented Jun 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.42%. Comparing base (69e5c05) to head (c64eea6).
Report is 52 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4096      +/-   ##
==========================================
- Coverage   91.32%   90.42%   -0.90%     
==========================================
  Files         109      109              
  Lines       15557    15557              
  Branches     3416     3416              
==========================================
- Hits        14207    14067     -140     
- Misses        920     1032     +112     
- Partials      430      458      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cyberthirst cyberthirst added this to the v0.4.1 milestone Aug 5, 2024
@charles-cooper charles-cooper added the release - must release blocker label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release - must release blocker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants