Page MenuHomePhabricator

[backport#17083] tests: Add fuzzing harness for various CScript related functions
ClosedPublic

Authored by majcosta on Jul 10 2020, 18:50.

Details

Summary

dc2fdb99072b87d34620084b82a494a5e698c279 tests: Add fuzzing harness for various CScript related functions (practicalswift)

Pull request description:

Add fuzzing harness for various `CScript` related functions.

**Testing this PR**

Run:

```
$ CC=clang CXX=clang++ ./configure --enable-fuzz --with-sanitizers=address,fuzzer,undefined
$ make
$ src/test/fuzz/script
…
# And to to quickly verify that the relevant code regions are triggered, that the
# fuzzing throughput seems reasonable, etc.
$ contrib/devtools/test_fuzzing_harnesses.sh '^script$'
```

`test_fuzzing_harnesses.sh` can be found in PR #17000.

Backport of Core PR17083

Test Plan
cmake -GNinja .. -DENABLE_SANITIZERS="address;fuzzer" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
ninja bitcoin-fuzzers
./src/test/fuzz/script

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Jul 10 2020, 22:42
This revision was landed with ongoing or failed builds.Jul 13 2020, 19:08
This revision was automatically updated to reflect the committed changes.