Skip to content

Commit

Permalink
Anchored fuzzers to latest working refs
Browse files Browse the repository at this point in the history
  • Loading branch information
hazimeh committed Jul 7, 2021
1 parent 35eab0e commit 63fc98f
Show file tree
Hide file tree
Showing 20 changed files with 55 additions and 29 deletions.
3 changes: 2 additions & 1 deletion fuzzers/afl/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/google/AFL.git "$FUZZER/repo"
git clone --no-checkout https://github.com/google/AFL.git "$FUZZER/repo"
git -C $"FUZZER/repo" checkout 61037103ae3722c8060ff7082994836a794f978e
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
cp "$FUZZER/src/afl_driver.cpp" "$FUZZER/repo/afl_driver.cpp"
3 changes: 2 additions & 1 deletion fuzzers/afl_asan/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/google/AFL.git "$FUZZER/repo"
git clone --no-checkout https://github.com/google/AFL.git "$FUZZER/repo"
git -C $"FUZZER/repo" checkout 61037103ae3722c8060ff7082994836a794f978e
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
cp "$FUZZER/src/afl_driver.cpp" "$FUZZER/repo/afl_driver.cpp"
3 changes: 2 additions & 1 deletion fuzzers/afl_resume/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/google/AFL.git "$FUZZER/repo"
git clone --no-checkout https://github.com/google/AFL.git "$FUZZER/repo"
git -C $"FUZZER/repo" checkout 61037103ae3722c8060ff7082994836a794f978e
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
cp "$FUZZER/src/afl_driver.cpp" "$FUZZER/repo/afl_driver.cpp"
3 changes: 2 additions & 1 deletion fuzzers/aflfast/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/mboehme/aflfast.git "$FUZZER/repo"
git clone --no-checkout https://github.com/mboehme/aflfast.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 11ec1828448d27bdcc54fdeb91bf3215d4d8c583
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
cp "$FUZZER/src/afl_driver.cpp" "$FUZZER/repo/afl_driver.cpp"
3 changes: 2 additions & 1 deletion fuzzers/aflplusplus/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/AFLplusplus/AFLplusplus "$FUZZER/repo"
git clone --no-checkout https://github.com/AFLplusplus/AFLplusplus "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 458eb0813a6f7d63eed97f18696bca8274533123

# Fix: CMake-based build systems fail with duplicate (of main) or undefined references (of LLVMFuzzerTestOneInput)
sed -i '{s/^int main/__attribute__((weak)) &/}' $FUZZER/repo/utils/aflpp_driver/aflpp_driver.c
Expand Down
3 changes: 2 additions & 1 deletion fuzzers/aflplusplus_lto/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/AFLplusplus/AFLplusplus "$FUZZER/repo"
git clone --no-checkout https://github.com/AFLplusplus/AFLplusplus "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 458eb0813a6f7d63eed97f18696bca8274533123

# Fix: CMake-based build systems fail with duplicate (of main) or undefined references (of LLVMFuzzerTestOneInput)
sed -i '{s/^int main/__attribute__((weak)) &/}' $FUZZER/repo/utils/aflpp_driver/aflpp_driver.c
Expand Down
3 changes: 2 additions & 1 deletion fuzzers/aflplusplus_lto_asan/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/AFLplusplus/AFLplusplus "$FUZZER/repo"
git clone --no-checkout https://github.com/AFLplusplus/AFLplusplus "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 458eb0813a6f7d63eed97f18696bca8274533123

# Fix: CMake-based build systems fail with duplicate (of main) or undefined references (of LLVMFuzzerTestOneInput)
sed -i '{s/^int main/__attribute__((weak)) &/}' $FUZZER/repo/utils/aflpp_driver/aflpp_driver.c
Expand Down
3 changes: 2 additions & 1 deletion fuzzers/angora/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/AngoraFuzzer/Angora "$FUZZER/repo"
git clone --no-checkout https://github.com/AngoraFuzzer/Angora "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 3cedcac8e65595cd2cdd950b60f654c93cf8cc2e

cp "$FUZZER/src/angora_driver.c" "$FUZZER/repo/angora_driver.c"
3 changes: 2 additions & 1 deletion fuzzers/entropic/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/llvm/llvm-project.git "$FUZZER/repo"
git clone --no-checkout https://github.com/llvm/llvm-project.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 29cc50e17a6800ca75cd23ed85ae1ddf3e3dcc14
3 changes: 2 additions & 1 deletion fuzzers/fairfuzz/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/carolemieux/afl-rb.git "$FUZZER/repo"
git clone --no-checkout https://github.com/carolemieux/afl-rb.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout e529c1f1b3666ad94e4d6e7ef24ea648aff39ae2
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
cp "$FUZZER/src/afl_driver.cpp" "$FUZZER/repo/afl_driver.cpp"
3 changes: 2 additions & 1 deletion fuzzers/honggfuzz/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/google/honggfuzz.git "$FUZZER/repo"
git clone --no-checkout https://github.com/google/honggfuzz.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout fc6b818c1276056bc565d07edec6ada784cd1670
3 changes: 2 additions & 1 deletion fuzzers/honggfuzz_asan/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/google/honggfuzz.git "$FUZZER/repo"
git clone --no-checkout https://github.com/google/honggfuzz.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout fc6b818c1276056bc565d07edec6ada784cd1670
11 changes: 8 additions & 3 deletions fuzzers/klee/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/klee/klee.git "$FUZZER/klee"
git clone --depth 1 https://github.com/klee/klee-uclibc.git "$FUZZER/uclibc"
git clone --depth 1 https://github.com/stp/stp.git "$FUZZER/stp"
git clone --no-checkout https://github.com/klee/klee.git "$FUZZER/klee"
git -C "$FUZZER/klee" checkout df04aeadefb4e1c34c7ef8b9123947ff045a34d9

git clone --no-checkout https://github.com/klee/klee-uclibc.git "$FUZZER/uclibc"
git -C "$FUZZER/uclibc" checkout 9351bdc9ad61ba25b051bef36f78b709ba50ff28

git clone --no-checkout https://github.com/stp/stp.git "$FUZZER/stp"
git -C "$FUZZER/stp" checkout 876589d45f656f13cefeb04a2f13005d0fa0c932
3 changes: 2 additions & 1 deletion fuzzers/libfuzzer/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/llvm/llvm-project.git "$FUZZER/repo"
git clone --no-checkout https://github.com/llvm/llvm-project.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout 29cc50e17a6800ca75cd23ed85ae1ddf3e3dcc14
2 changes: 1 addition & 1 deletion fuzzers/llvm_analysis/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ set -e

export GOPATH="$FUZZER/repo/go"
mkdir -p $GOPATH
go get github.com/SRI-CSL/gllvm/cmd/...
go get github.com/SRI-CSL/gllvm/cmd/...@v1.3.0
3 changes: 2 additions & 1 deletion fuzzers/moptafl/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/puppet-meteor/MOpt-AFL.git "$FUZZER/repo"
git clone --no-checkout https://github.com/puppet-meteor/MOpt-AFL.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout a9a5dc5c0c291c1cdb09b2b7b27d7cbf1db7ce7b
mv "$FUZZER/repo/MOpt"/* "$FUZZER/repo"
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
Expand Down
3 changes: 2 additions & 1 deletion fuzzers/moptafl_asan/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/puppet-meteor/MOpt-AFL.git "$FUZZER/repo"
git clone --no-checkout https://github.com/puppet-meteor/MOpt-AFL.git "$FUZZER/repo"
git -C "$FUZZER/repo" checkout a9a5dc5c0c291c1cdb09b2b7b27d7cbf1db7ce7b
mv "$FUZZER/repo/MOpt"/* "$FUZZER/repo"
#wget -O "$FUZZER/repo/afl_driver.cpp" \
# "https://cs.chromium.org/codesearch/f/chromium/src/third_party/libFuzzer/src/afl/afl_driver.cpp"
Expand Down
3 changes: 2 additions & 1 deletion fuzzers/parmesan/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/vusec/parmesan "$FUZZER/repo"
git clone --no-checkout https://github.com/vusec/parmesan "$FUZZER/repo"
git -C "$FUZZER/repo" checkout fac580130146c07a2a0f82a24dfe0704e1851ab3

# Use Angora version of gen_library_abilist.sh script (because it handles
# numbered .so extensions properly)
Expand Down
14 changes: 9 additions & 5 deletions fuzzers/symcc_afl/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ set -e
# - env FUZZER: path to fuzzer work dir
##

git clone --depth 1 https://github.com/google/AFL.git "$FUZZER/afl"
git clone --no-checkout https://github.com/google/AFL.git "$FUZZER/afl"
git -C "$FUZZER/afl" checkout 61037103ae3722c8060ff7082994836a794f978e
cp "$FUZZER/src/afl_driver.cpp" "$FUZZER/afl/afl_driver.cpp"

git clone --depth 1 https://github.com/eurecom-s3/symcc.git "$FUZZER/symcc"
git clone --no-checkout https://github.com/eurecom-s3/symcc.git "$FUZZER/symcc"
git -C "$FUZZER/symcc" checkout 82151a62e3b702a2c699ca4d8ef91d3bf9beeb2b

git -C "$FUZZER/symcc" submodule init
git -C "$FUZZER/symcc" submodule update

git clone --depth 1 https://github.com/Z3Prover/z3.git "$FUZZER/z3"
git clone --no-checkout https://github.com/Z3Prover/z3.git "$FUZZER/z3"
git -C "$FUZZER/z3" checkout 897cbf347bcf73ac986d50636b15f09968130880

git clone --depth 1 -b release/11.x \
https://github.com/llvm/llvm-project.git "$FUZZER/llvm"
git clone --no-checkout https://github.com/llvm/llvm-project.git "$FUZZER/llvm"
git -C "$FUZZER/llvm" checkout 29cc50e17a6800ca75cd23ed85ae1ddf3e3dcc14
9 changes: 5 additions & 4 deletions fuzzers/symcc_analysis/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ set -e
##

git clone --no-checkout https://github.com/eurecom-s3/symcc.git "$FUZZER/symcc"
git -C "$FUZZER/symcc" checkout 1cc757dfbc9ac7e26ddcadd48d38c30c2c540116
git -C "$FUZZER/symcc" checkout 82151a62e3b702a2c699ca4d8ef91d3bf9beeb2b

git -C "$FUZZER/symcc" submodule init
git -C "$FUZZER/symcc" submodule update

git clone --no-checkout https://github.com/Z3Prover/z3.git "$FUZZER/z3"
git -C "$FUZZER/z3" checkout 78b88f761ca21f0287eb6563092b706d15c7b71b
git -C "$FUZZER/z3" checkout 897cbf347bcf73ac986d50636b15f09968130880

git clone --depth 1 -b release/11.x \
https://github.com/llvm/llvm-project.git "$FUZZER/llvm"
git clone --no-checkout https://github.com/llvm/llvm-project.git "$FUZZER/llvm"
git -C "$FUZZER/llvm" checkout 29cc50e17a6800ca75cd23ed85ae1ddf3e3dcc14

0 comments on commit 63fc98f

Please sign in to comment.