HomePhabricator

Add fuzzer version of randomized prevector test

Description

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>

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 4 2020, 23:15
FabienCommitted on Jan 21 2021, 14:06
FabienPushed on Jan 21 2021, 14:08
Reviewer
Restricted Project
Differential Revision
D9003: Add fuzzer version of randomized prevector test
Parents
rABCdafd2b7224b5: tests: Avoid fuzzer-specific nullptr dereference in libevent when handling…
Branches
Unknown
Tags
Unknown