Page MenuHomePhabricator

Add fuzzer version of randomized prevector test
ClosedPublic

Authored by Fabien on Jan 21 2021, 10:47.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC3c8f5fb298a5: Add fuzzer version of randomized prevector test
Summary
The current prevector test effectively randomly generates a number of
operations to perform on a prevector and a normal vector, and checks
consistency between the two.

By converting this into a fuzzer the operations can be targetted rather
than random.

Backport of core PR18529.

Test Plan
ninja bitcoin-fuzzers
./src/test/fuzz/prevector <path_to_corpus>

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.