HomePhabricator

tests: Add fuzzing harnesses for classes/functions in policy/fees.h, checkqueue.

Description

tests: Add fuzzing harnesses for classes/functions in policy/fees.h, checkqueue.h and cuckoocache.h. Add fuzzing coverage.

Summary:

Add fuzzing harness for FeeFilterRounder
Add fuzzing harness for classes/functions in checkqueue.h
Add fuzzing harness for classes/functions in cuckoocache.h
Add coverage of {,Incremental}DynamicUsage(const std::set<X, Y>&s) to existing fuzzer
Add coverage of GetVirtualTransactionSize(...) to existing fuzzer
Add fuzzing harness for AdditionOverflow(...)

Backport of core PR18565.

Our cuckoocache requires a class as key since D4643.

Test Plan:

ninja bitcoin-fuzzers
./test/fuzz/test_runner.py <path_to_corpus>

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8987

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Apr 7 2020, 15:40
FabienCommitted on Jan 20 2021, 20:07
FabienPushed on Jan 20 2021, 20:09
Reviewer
Restricted Project
Differential Revision
D8987: tests: Add fuzzing harnesses for classes/functions in policy/fees.h, checkqueue.h and cuckoocache.h. Add fuzzing coverage.
Parents
rABCf9c4169b6d75: tests: Add proof-of-work fuzzing harness
Branches
Unknown
Tags
Unknown