HomePhabricator

tests: Add fuzzing harnesses for functions in script/

Description

tests: Add fuzzing harnesses for functions in script/

Summary:

- Add fuzzing helper functions ConsumeDataStream and ConsumeUInt160
- Fill fuzzing coverage gaps for functions in script/script.h,
  script/script_error.h and script/standard.h
- Add fuzzing harness for functions in script/bitcoinconsensus.h
- Add fuzzing harness for functions in script/descriptor.h
- Add fuzzing harness for functions in script/interpreter.h
- Add fuzzing harness for functions in script/sigcache.h
- Add fuzzing harness for functions in script/sign.h

Backport of core PR18994.

Test Plan:

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on May 16 2020, 18:13
FabienCommitted on Jan 29 2021, 19:11
FabienPushed on Jan 29 2021, 19:12
Reviewer
Restricted Project
Differential Revision
D9111: tests: Add fuzzing harnesses for functions in script/
Parents
rABC430c7599fc38: rpcwallet: Replace pwallet-> with wallet.
Branches
Unknown
Tags
Unknown