diff options
author | 2020-04-17 15:25:38 +0100 | |
---|---|---|
committer | 2020-04-17 07:25:38 -0700 | |
commit | 3dcc0034792b7de2c511dc33cf3a90a7544a2308 (patch) | |
tree | a29bb8286b445b5ef3a39501c881e8bf9f0e2787 /projects/libarchive/build.sh | |
parent | 8ed2f7af34950d8c4d25405ebf90f59b932a5ea9 (diff) |
Added a seed corpus to libarchive fuzzer (#3590)
* Added seed corpus to libarchive fuzzer
* Added auto cc
* Updated cc-list
Diffstat (limited to 'projects/libarchive/build.sh')
-rwxr-xr-x | projects/libarchive/build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/projects/libarchive/build.sh b/projects/libarchive/build.sh index 0f04f8dc..89ea95cf 100755 --- a/projects/libarchive/build.sh +++ b/projects/libarchive/build.sh @@ -20,6 +20,22 @@ ./configure make -j$(nproc) all +# build seed +SD=seed +echo "Mary had a little lamb, +Its fleece was white as snow; +And everywhere that Mary went +The lamb was sure to go." >> $SD +bzip2 -k $SD && gzip -k $SD && lrzip $SD && lz4 -k $SD \ + && lzop $SD && xz -k $SD && zstd -k $SD \ + && genisoimage -o $SD.iso $SD && lcab $SD $SD.cab \ + && lha c $SD.lzh $SD && rar a $SD.rar $SD \ + && tar -czvf $SD.tar.gz $SD && jar -cvf $SD $SD \ + && zip $SD $SD + +zip corpus $SD.* && mv corpus.zip /out/libarchive_fuzzer_seed_corpus.zip +rm $SD.* + # build fuzzer(s) $CXX $CXXFLAGS -Ilibarchive \ $SRC/libarchive_fuzzer.cc -o $OUT/libarchive_fuzzer \ |