diff options
| author | mtg0001 <106211915+mtg0001@users.noreply.github.com> | 2026-08-04 15:31:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-04 15:31:55 -0300 |
| commit | b3a5a858e536acf65e6c6761293626628f2227bf (patch) | |
| tree | 881dbe44ac6c0ea28f5a65cbfd9b835ba73ea648 /src/fuzz_script.cpp | |
| parent | 173b4649e90f4f5ba49e92569eb063709e647c7d (diff) | |
fuzz: add P2P message parser harness (#142)
* fuzz: add P2P message parser harness
* fuzz: avoid duplicate legacy header includes
* fuzz: seed the corpus with our network magic, not Bitcoin's
The two seed inputs began f5 be b6 d9, which is Bitcoin's message
start. Ours is bf 20 5c fd. CMessageHeader::IsValid rejects on that
field first, so both seeds died at the first check and the smoke run
exercised the reject path and nothing else.
libFuzzer would have to mutate its way onto four exact bytes before
reaching any parser, which does not happen in 128 runs. The job would
have gone green while covering none of what it was added to cover.
---------
Co-authored-by: Gilcimar Duarte <ti@gpm.infra>
Co-authored-by: Bitflash-sh <btf01@proton.me>
Diffstat (limited to 'src/fuzz_script.cpp')
0 files changed, 0 insertions, 0 deletions