file: Add elf and pe seeds (#8073)

* file: Add elf and pe seeds

* file: make binary-samples path explicit

* Update Dockerfile

Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>
This commit is contained in:
Michael Macnair 2022-07-25 13:38:59 +01:00 committed by GitHub
parent 05d1ebf6c2
commit cea71828c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -17,5 +17,9 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool shtool
RUN git clone --depth 1 https://github.com/file/file.git
# Supplement file's existing test files to get elf + pe coverage.
RUN git clone --depth 1 https://github.com/DavidKorczynski/binary-samples.git
WORKDIR file
COPY build.sh magic_fuzzer.cc $SRC/

View File

@ -25,4 +25,4 @@ $CXX $CXXFLAGS -std=c++11 -Isrc/ \
cp ./magic/magic.mgc $OUT/
zip -j $OUT/magic_fuzzer_seed_corpus.zip ./tests/*.testfile
zip -j $OUT/magic_fuzzer_seed_corpus.zip ./tests/*.testfile $SRC/binary-samples/{elf,pe}-*