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

fix: use the shrunken abi values as the msg's data #374

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

0xalpharush
Copy link
Contributor

During input shrinking, the msg's data was not being re-encoded so there were duplicate entires in the test_results directory that seemed unique based on their inputValues field but had the same data field.

Closes #338

@0xalpharush
Copy link
Contributor Author

I think this also explains the strange behavior I was seeing with shrinking where the call sequence appeared to have shrunk but remained unchanged
https://github.com/crytic/medusa/tree/experiment/shrinking

@0xalpharush
Copy link
Contributor Author

It also seems to have improved on this example #229 (comment)

@anishnaik
Copy link
Collaborator

awesome find, thanks @0xalpharush

@anishnaik anishnaik merged commit 08a6eab into master Jun 24, 2024
12 checks passed
@anishnaik anishnaik deleted the fix/old-input-data branch June 24, 2024 22:08
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.

Inconsistency in the corpus encoded and decoded data
2 participants