From 0a8a100e8d8277768f1fd0fa14debe5a1b5ad46a Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Wed, 5 Oct 2022 12:20:41 +0200 Subject: [PATCH] Improve a bit libarchive's corpus (#8683) - Add corkami's repository of weird formats/archives - Speed up compilation a bit Co-authored-by: Julien Voisin --- projects/libarchive/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/libarchive/build.sh b/projects/libarchive/build.sh index 187796cc9..77ef2ad6d 100755 --- a/projects/libarchive/build.sh +++ b/projects/libarchive/build.sh @@ -45,12 +45,16 @@ sed -i 's/-Werror//g' ./CMakeLists.txt mkdir build2 cd build2 cmake ../ -make +make -j$(nproc) # build seed cp $SRC/libarchive/contrib/oss-fuzz/corpus.zip\ $OUT/libarchive_fuzzer_seed_corpus.zip +# add weird archives +git clone --depth=1 https://github.com/corkami/pocs +find $SRC/pocs/ -type f -print0 | xargs -0 -I % zip -jr $OUT/libarchive_fuzzer_seed_corpus.zip % + # build fuzzer(s) $CXX $CXXFLAGS -I../libarchive \ $SRC/libarchive_fuzzer.cc -o $OUT/libarchive_fuzzer \