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

Bugfix function signature misreport #1895

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

yitacls
Copy link

@yitacls yitacls commented Jan 24, 2025

Description

  • Implement a filter to exclude common false positive signatures, such as account_info_rotate_tine(uint256), as well as 0x00000001.
  • Add --ignore-false-funcs argument to ignore false positive function signatures

This PR introduces a new command-line argument --ignore-false-funcs in cli.py. This argument accepts a list of function signatures to be ignored as false positives.

Usage Example:

python myth a -a 0x0aaeb2f7209b5796a3f323dcdf9cc4a7981ec8bf -t 1 --bin-runtime --unconstrained-storage --infura-id <infura-id> --transaction-sequences [[0x022c0d9f]] --ignore-false-funcs [0x00000001]

@yitacls yitacls force-pushed the bugfix-function-signature-misreport branch from 664066a to 184f21c Compare January 25, 2025 11:46
@norhh
Copy link
Collaborator

norhh commented Feb 4, 2025

tests/integration_tests/coverage_metrics_test.py::test_basic_coverage seems to fail at the literal_eval statement.
Can you add a testcase for this argument?

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.

2 participants