Skip to content

Add fuzzing support#518

Open
jgriffiths wants to merge 8 commits intomasterfrom
fuzzer_impl
Open

Add fuzzing support#518
jgriffiths wants to merge 8 commits intomasterfrom
fuzzer_impl

Conversation

@jgriffiths
Copy link
Contributor

Thanks to @erickcestari for the implementation!

jgriffiths and others added 8 commits February 12, 2026 15:36
Thanks to @erickcestari for reporting and suggesting a fix.
asan doesn't like math on NULL pointers, even when the result is unused.

This causes fuzzing to report false memory leaks when asan trips, so
trivially avoid it.
Don't take a dst parameter where not needed.
Enable continuous security testing through libFuzzer integration.
Fuzzing helps discover memory corruption bugs, parsing edge cases,
and undefined behavior that traditional unit tests often miss.

Add --enable-fuzzing, --enable-address-sanitizer, and
--enable-ub-sanitizer options to both autotools and CMake.

Initial fuzz target covers PSBT parsing with round-trip verification
to catch serialization inconsistencies.
Avoids false positives on e.g. x86 platforms.
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.

2 participants