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

Fuzzing integration #1004

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Fuzzing integration #1004

merged 2 commits into from
Mar 13, 2024

Conversation

darosior
Copy link
Member

This introduces fuzzing into our project with two fuzz targets exercising our descriptor parsing logic. See the commit messages for details. This found a crash (first commit).

This was motivated by testing the work on Taproot (#985).

Not sure what i was thinking when writing this.
This integrates fuzzing into our project by introducing two targets
which exercise the descriptor parsing and analysis logic.

The `descriptor_parse` is dead simple but not very effective. The
`descriptors` harness tries to be smarter by almost always generating a
valid Liana descriptor.

Of course, this is just a first integration and both could be made more
effective.
@darosior
Copy link
Member Author

ACK 3017b88 - it's not interfering with anything in the repo, been running these for half a day with no crash.

@darosior darosior merged commit f170923 into wizardsardine:master Mar 13, 2024
18 checks passed
@darosior darosior deleted the 2403_fuzz branch March 13, 2024 13:28
/// Generate the data for this path. We reuse the same xpub across the board as it doesn't
/// matter. However we change the fingerprint, as it matters for the spend info analysis.
pub fn info(&self, path_index: u8) -> Option<PathInfo> {
if self.thresh > self.count || self.count > 100 {
Copy link
Member Author

Choose a reason for hiding this comment

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

Missing check for count == 0...

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.

1 participant