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

fuzz: Fail if message type is not fuzzed #20915

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jan 12, 2021

process_message_* is a nice way to quickly fuzz a single message type. However, the offered message types are outdated and all BIPs implemented in the last years are missing.

Fix that by adding them and failing when the number of message types don't add up.

@DrahtBot DrahtBot added the Tests label Jan 12, 2021
@practicalswift
Copy link
Contributor

Concept ACK: clever completeness checking!

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 16, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@maflcko
Copy link
Member Author

maflcko commented Feb 11, 2021

Rebased

@practicalswift
Copy link
Contributor

cr ACK fa4bc89: patch looks correct and touches only src/test/fuzz/

@maflcko maflcko merged commit a59e7ed into bitcoin:master Feb 11, 2021
@maflcko maflcko deleted the 2101-fuzzFailMsgType branch February 11, 2021 09:54
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 11, 2021
fa4bc89 fuzz: Fail if message type is not fuzzed (MarcoFalke)
faefed8 fuzz: Count message type fuzzers before main() (MarcoFalke)

Pull request description:

  `process_message_*` is a nice way to quickly fuzz a single message type. However, the offered message types are outdated and all BIPs implemented in the last years are missing.

  Fix that by adding them and failing when the number of message types don't add up.

ACKs for top commit:
  practicalswift:
    cr ACK fa4bc89: patch looks correct and touches only `src/test/fuzz/`

Tree-SHA512: 8c98374b50fb4ab2ff2550daeab4c6e9f486bfe847466d217d4bc97d119adc99a82b87b56f47535b1cf8f844232bc7fa1230712a9147cda514ae78851556f988
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants