Skip to content

Fuzz fixes #95

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

Merged
merged 9 commits into from
Jun 17, 2020
Merged

Fuzz fixes #95

merged 9 commits into from
Jun 17, 2020

Conversation

sanket1729
Copy link
Member

@sanket1729 sanket1729 commented Jun 6, 2020

  1. Removes redundant tests from fuzz repo: roundtrip_policy.rs had the same code which was split in roundtrip_semantic and rondtrip_concrete
  2. Removes other replicated code for crash replication from each fuzz file. Added a README with instructions for crash replication on Travis.
  3. Fixes fuzz_targets/roundtrip_policy.rs fails with 6f7228706b282929 (~ "or(pk())") #92 by adding a regex to remove '1@' from the strings. Basically, it looks for all occurrences of \D1@ a non-digit followed by 1@ and replaces them with "". Other solutions to fixing fuzz_targets/roundtrip_policy.rs fails with 6f7228706b282929 (~ "or(pk())") #92 might have involved leaking some internal tree parsing code outside of repo for testing purposes.
  4. Suppressed the dyn warnings. I don't know what is your opinion about these.
  5. Fixed bench tests and added those to travis.

Can rebase and squash later if desired.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK.

Heads up that eventually we do want to support n-ary and and or ... but this is a fairly low-priority thing for me.

@sanket1729 sanket1729 merged commit b4e33e5 into rust-bitcoin:master Jun 17, 2020
@sanket1729 sanket1729 deleted the fuzz_fixes branch June 17, 2020 02:57
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.

fuzz_targets/roundtrip_policy.rs fails with 6f7228706b282929 (~ "or(pk())")
2 participants