5ec69e8c2c
Add AFL in zcutil (with all-in-one script) Supersedes #4156 and #4167. Fuzzing targets and input sets are defined by the contents of directories in `./src/fuzzing/`. Inside the directory, there's a `fuzz.cpp` and `fuzz.h` with a `main()` function that will replace `zcashd`'s actual `main()` as well as an `input` subdirectory containing the inputs, one per file. To just run a fuzzer, you can, for example... ``` make clean # if you've previously build zcashd without AFL instrumentation ./zcutil/afl/afl-getbuildrun.sh DecodeHexTx ``` Alternatively you can... ``` ./zcutil/afl/afl-get.sh /tmp/afl # (or wherever you want to build AFL) ./zcutil/afl/afl-build.sh /tmp/afl DecodeHexTx -j$(nproc) ./zcutil/afl/afl-run.sh /tmp/afl DecodeHexTx ``` Run `make clean` whenever you switch between a normal build and an AFL-instrumented build. |
||
---|---|---|
.. | ||
afl | ||
build-debian-package.sh | ||
build.sh | ||
cleanup-tags.sh | ||
fetch-params.sh | ||
make-release.py | ||
release-notes.py |