From 34975fed838dabae52b48c964653e6c5d1acfcef Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Wed, 5 Oct 2022 16:31:52 +0200 Subject: [PATCH] Add weird files to clamav's corpus (#8684) Co-authored-by: Julien Voisin --- projects/clamav/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/clamav/build.sh b/projects/clamav/build.sh index d11de02d0..f738209d8 100755 --- a/projects/clamav/build.sh +++ b/projects/clamav/build.sh @@ -51,7 +51,7 @@ cmake ${SRC}/clamav \ -DCMAKE_INSTALL_PREFIX="install" # Build libclamav and the fuzz targets -make -j4 +make -j$(nproc) cp ./fuzz/clamav_* ${OUT}/. # @@ -76,6 +76,10 @@ for type in ARCHIVE MAIL OLE2 PDF HTML PE ELF SWF XMLDOCS HWP3; do cp ${SRC}/clamav-fuzz-corpus/scantype/${type}/* ${WORK}/all-scantype-seeds/ done +# Add weird files +git clone --depth=1 https://github.com/corkami/pocs +find ./pocs/ -type f -print0 | xargs -0 -I % mv -f % ${WORK}/all-scantype-seeds/ + # Prepare seed corpus for the generic fuzz target. cp ${SRC}/clamav-fuzz-corpus/scantype/other/* ${WORK}/all-scantype-seeds/ zip ${OUT}/clamav_scanfile_fuzzer_seed_corpus.zip ${WORK}/all-scantype-seeds/*