Skip to content

fuzz: test bolt11 decoding#6750

Merged
vincenzopalazzo merged 2 commits intoElementsProject:masterfrom
dergoegge:2023-10-fuzz-bolt11
Oct 12, 2023
Merged

fuzz: test bolt11 decoding#6750
vincenzopalazzo merged 2 commits intoElementsProject:masterfrom
dergoegge:2023-10-fuzz-bolt11

Conversation

@dergoegge
Copy link
Contributor

No description provided.

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Concept ACK d58419f

waiting the CI

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

make check-includes is failing, I think there is some include in the wrong order

@dergoegge dergoegge force-pushed the 2023-10-fuzz-bolt11 branch from d58419f to 9cbdcee Compare October 6, 2023 12:55
@dergoegge
Copy link
Contributor Author

make check-includes is failing

Thanks, should be fixed now

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK 9cbdcee

@vincenzopalazzo vincenzopalazzo added this to the v23.11 milestone Oct 6, 2023
@vincenzopalazzo vincenzopalazzo self-assigned this Oct 6, 2023
@morehouse
Copy link
Contributor

Nice! I was working on a similar fuzz test, though a little simpler than this one. I'll give this a review soon.

Copy link
Contributor

@morehouse morehouse left a comment

Choose a reason for hiding this comment

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

Very nice mutator. Mostly easy-to-fix comments inline.

I imagine a custom cross-over mutator would also be useful, but that's something that could be added later (if you don't have time for it, I'd be happy to work on it).

Copy link
Contributor Author

@dergoegge dergoegge left a comment

Choose a reason for hiding this comment

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

Thanks for the review! I think I addressed all your comments.

I imagine a custom cross-over mutator would also be useful, but that's something that could be added later (if you don't have time for it, I'd be happy to work on it).

Probably don't have the time atm but would be interested to see what you come up with.


I've been trying to find a good collection of bolt11 strings to seed the corpus, so far I've only used the ones from the spec. Are you aware of any others we could use?

@dergoegge dergoegge force-pushed the 2023-10-fuzz-bolt11 branch from 9cbdcee to 12951a6 Compare October 9, 2023 14:33
Copy link
Contributor

@morehouse morehouse left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me. Just one more fix needed for the dummy input.

@dergoegge dergoegge force-pushed the 2023-10-fuzz-bolt11 branch from 12951a6 to ef32783 Compare October 11, 2023 14:28
@vincenzopalazzo vincenzopalazzo self-requested a review October 11, 2023 21:10
Copy link
Contributor

@morehouse morehouse left a comment

Choose a reason for hiding this comment

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

ACK ef32783

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK ef32783

@vincenzopalazzo vincenzopalazzo merged commit 02717c7 into ElementsProject:master Oct 12, 2023
@morehouse morehouse mentioned this pull request Oct 16, 2023
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.

3 participants