HomePhabricator

[backport#17069] tests: Pass fuzzing inputs as constant references

Description

[backport#17069] tests: Pass fuzzing inputs as constant references

Summary:
ffa22212560c9e7a8692cb8982d9b3b507ee9af1 tests: Pass fuzzing inputs as constant references (practicalswift)

Pull request description:

Pass fuzzing inputs as constant references.

Split out from #17009 as suggested by MarcoFalke in https://github.com/bitcoin/bitcoin/pull/17009#discussion_r331502028.

Backport of Core PR17069

Test Plan:

export CC=clang CXX=clang++
../configure --enable-fuzz --with-sanitizers=fuzzer,address \
  --disable-wallet \
  --disable-bench \
  --with-utils=no \
  --with-daemon=no \
  --with-libs=no \
  --with-gui=no \
  --with-seeder=no
make
mkdir -p test/fuzz
cp ../test/fuzz/test_runner.py test/fuzz/
./test/fuzz/test_runner.py -l DEBUG <path_to_corpus>

cmake -GNinja .. -DENABLE_SANITIZERS="address;fuzzer" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
ninja bitcoin-fuzzers link-fuzz-test_runner.py
./test/fuzz/test_runner.py -l DEBUG <path_to_corpus>

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Oct 7 2019, 14:24
majcostaCommitted on Jun 26 2020, 17:44
majcostaPushed on Jun 26 2020, 17:44
Reviewer
Restricted Project
Differential Revision
D6740: [backport#17069] tests: Pass fuzzing inputs as constant references
Parents
rABCdf209087d3b4: [Automated] Update manpages
Branches
Unknown
Tags
Unknown