Port AFL stuff from zcash upstream

This commit is contained in:
Duke Leto
2019-11-14 21:55:35 -05:00
parent f69e3697aa
commit 5d6d52daf3
7 changed files with 131 additions and 0 deletions

9
zcutil/afl/afl-run.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eu -o pipefail
AFL_INSTALL_DIR="$1"
FUZZ_CASE="$2"
shift 2
"$AFL_INSTALL_DIR/afl-fuzz" -i "./src/fuzzing/$FUZZ_CASE/input" -o "./src/fuzzing/$FUZZ_CASE/output" "$@" ./src/zcashd @@