mirror of https://github.com/google/oss-fuzz.git
Add weird files to clamav's corpus (#8684)
Co-authored-by: Julien Voisin <jvoisin@google.com>
This commit is contained in:
parent
0a8a100e8d
commit
34975fed83
|
@ -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/*
|
||||
|
|
Loading…
Reference in New Issue