From a750c64ca9c41a0cc50717facdb0b4c800329eac Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 8 Dec 2020 07:24:19 -0500 Subject: [PATCH] Copyrights --- zcutil/afl/afl-build.sh | 5 ++++- zcutil/afl/afl-get.sh | 7 +++++-- zcutil/afl/afl-getbuildrun.sh | 7 +++++-- zcutil/afl/afl-run.sh | 5 ++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/zcutil/afl/afl-build.sh b/zcutil/afl/afl-build.sh index 912d285b5..3a187e3c2 100755 --- a/zcutil/afl/afl-build.sh +++ b/zcutil/afl/afl-build.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) 2019-2020 The Hush developers +# Distributed under the GPLv3 software license, see the accompanying +# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html # A wrapper around ./zcutil/build.sh for instrumenting the build with AFL: # ./zcutil/afl/afl-build.sh # You may obtain a copy of AFL using ./zcutil/afl/afl-get.sh. @@ -13,7 +16,7 @@ export ZCUTIL=$(realpath "./zcutil") cp "./src/fuzzing/$FUZZ_CASE/fuzz.cpp" src/fuzz.cpp -CONFIGURE_FLAGS="--enable-tests=no --enable-fuzz-main" "$ZCUTIL/build.sh" "CC=$ZCUTIL/afl/zcash-wrapper-gcc" "CXX=$ZCUTIL/afl/zcash-wrapper-g++" AFL_HARDEN=1 "$@" +CONFIGURE_FLAGS="--enable-tests=no --enable-fuzz-main" "$ZCUTIL/build.sh" "CC=$ZCUTIL/afl/hush-wrapper-gcc" "CXX=$ZCUTIL/afl/hush-wrapper-g++" AFL_HARDEN=1 "$@" echo "You can now run AFL as follows:" echo "$ ./zcutil/afl/afl-run.sh '$AFL_INSTALL_DIR' '$FUZZ_CASE'" diff --git a/zcutil/afl/afl-get.sh b/zcutil/afl/afl-get.sh index 641536f07..fe9084902 100755 --- a/zcutil/afl/afl-get.sh +++ b/zcutil/afl/afl-get.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) 2019-2020 The Hush developers +# Distributed under the GPLv3 software license, see the accompanying +# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html # Obtains and builds a copy of AFL from source. # ./zcutil/afl/afl-get.sh @@ -27,7 +30,7 @@ mv afl-*/* . # Build AFL make -echo "You can now build zcashd with AFL instrumentation as follows:" -echo "$ make clean # if you've already built zcashd without AFL instrumentation" +echo "You can now build hushd with AFL instrumentation as follows:" +echo "$ make clean # if you've already built hushd without AFL instrumentation" echo "$ ./zcutil/afl/afl-build.sh '$(pwd)' -j\$(nproc)" echo "...where is the name of a directory in src/fuzzing." diff --git a/zcutil/afl/afl-getbuildrun.sh b/zcutil/afl/afl-getbuildrun.sh index 1af352fce..07e3f8354 100755 --- a/zcutil/afl/afl-getbuildrun.sh +++ b/zcutil/afl/afl-getbuildrun.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash -# Builds AFL and an instrumented zcashd, then begins fuzzing. -# This script must be run from within the top level directory of a zcash clone. +# Copyright (c) 2019-2020 The Hush developers +# Distributed under the GPLv3 software license, see the accompanying +# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html +# Builds AFL and an instrumented hushd, then begins fuzzing. +# This script must be run from within the top level directory of a hush clone. # Pass it the name of a directory in ./src/fuzzing. # Additional arguments are passed-through to AFL. diff --git a/zcutil/afl/afl-run.sh b/zcutil/afl/afl-run.sh index 245997563..b89b3ad5b 100755 --- a/zcutil/afl/afl-run.sh +++ b/zcutil/afl/afl-run.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) 2019-2020 The Hush developers +# Distributed under the GPLv3 software license, see the accompanying +# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html set -eu -o pipefail @@ -6,4 +9,4 @@ 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 @@ +"$AFL_INSTALL_DIR/afl-fuzz" -i "./src/fuzzing/$FUZZ_CASE/input" -o "./src/fuzzing/$FUZZ_CASE/output" "$@" ./src/hushd @@