Skip to content

Commit

Permalink
use the public OSS-Fuzz corpus on CFLite
Browse files Browse the repository at this point in the history
  • Loading branch information
evverx committed Jan 12, 2022
1 parent b0c36e4 commit 0547a43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clusterfuzzlite/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM gcr.io/oss-fuzz-base/base-builder:v1
RUN apt-get update && \
apt-get install -y pkg-config make autoconf autopoint zlib1g-dev flex bison gawk
apt-get install -y pkg-config make autoconf autopoint zlib1g-dev flex bison gawk wget
COPY .clusterfuzzlite/build.sh $SRC
COPY . $SRC/elfutils
WORKDIR $SRC/elfutils
7 changes: 6 additions & 1 deletion tests/build-fuzzers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,9 @@ $CC $CFLAGS \
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE fuzz-dwfl-core.o \
./libdw/libdw.a ./libelf/libelf.a -l:libz.a \
-o "$OUT/fuzz-dwfl-core"
zip -r -j "$OUT/fuzz-dwfl-core_seed_corpus.zip" tests/fuzz-dwfl-core-crashes

public_corpus=$(mktemp)
wget -O "$public_corpus" https://storage.googleapis.com/elfutils-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/elfutils_fuzz-dwfl-core/public.zip
unzip -qd tests/fuzz-dwfl-core-crashes "$public_corpus"
rm -f "$public_corpus"
zip -qr "$OUT/fuzz-dwfl-core_seed_corpus.zip" tests/fuzz-dwfl-core-crashes

0 comments on commit 0547a43

Please sign in to comment.