Add fuzzing harness for CheckTransaction(...)
, IsStandardTx(...)
and other CTransaction
related functions.
Testing this PR
Run:
0$ CC=clang CXX=clang++ ./configure --enable-fuzz --with-sanitizers=address,fuzzer,undefined
1$ make
2$ src/test/fuzz/transaction
3…
4# And to to quickly verify that the relevant code regions are triggered, that the
5# fuzzing throughput seems reasonable, etc.
6$ contrib/devtools/test_fuzzing_harnesses.sh '^transaction$'
test_fuzzing_harnesses.sh
can be found in PR #17000.