Add weird files to clamav's corpus (#8684)

Co-authored-by: Julien Voisin <jvoisin@google.com>
This commit is contained in:
Julien Voisin 2022-10-05 16:31:52 +02:00 committed by GitHub
parent 0a8a100e8d
commit 34975fed83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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/*