From 8cfcd03fd575cfb4790caba119c468eb4666eca8 Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Wed, 19 Feb 2020 20:24:40 +0530 Subject: [PATCH] solidity: Update seed corpus (#3403) --- projects/solidity/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/solidity/build.sh b/projects/solidity/build.sh index 82881805e..dc9b869e0 100755 --- a/projects/solidity/build.sh +++ b/projects/solidity/build.sh @@ -39,10 +39,15 @@ make ossfuzz ossfuzz_proto ossfuzz_abiv2 -j $(nproc) # Copy fuzzer binary, seed corpus, fuzzer options, and dictionary cp test/tools/ossfuzz/*_ossfuzz $OUT/ rm -f $OUT/*.zip + +# Update corpus +cd $SRC/solidity-fuzzing-corpus +git pull origin master + for dir in $SRC/solidity-fuzzing-corpus/*; do name=$(basename $dir) - zip -rjq $OUT/$name $dir + zip -rq $OUT/$name $dir done cp $SRC/solidity/test/tools/ossfuzz/config/*.options $OUT/ cp $SRC/solidity/test/tools/ossfuzz/config/*.dict $OUT/