diff options
Diffstat (limited to '')
-rw-r--r-- | .clusterfuzzlite/Dockerfile | 5 | ||||
-rwxr-xr-x | .clusterfuzzlite/build.sh | 16 | ||||
-rw-r--r-- | .clusterfuzzlite/project.yaml | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/.clusterfuzzlite/Dockerfile b/.clusterfuzzlite/Dockerfile new file mode 100644 index 0000000..01a129a --- /dev/null +++ b/.clusterfuzzlite/Dockerfile @@ -0,0 +1,5 @@ +FROM gcr.io/oss-fuzz-base/base-builder:v1 +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config +COPY . $SRC/ngtcp2 +WORKDIR ngtcp2 +COPY .clusterfuzzlite/build.sh $SRC/ diff --git a/.clusterfuzzlite/build.sh b/.clusterfuzzlite/build.sh new file mode 100755 index 0000000..0ac681c --- /dev/null +++ b/.clusterfuzzlite/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash -eu + +autoreconf -i +./configure --enable-lib-only +make -j$(nproc) + +$CXX $CXXFLAGS -std=c++17 -Ilib/includes -Ilib -I. -DHAVE_CONFIG_H \ + fuzz/decode_frame.cc -o $OUT/decode_frame \ + $LIB_FUZZING_ENGINE lib/.libs/libngtcp2.a + +$CXX $CXXFLAGS -std=c++17 -Ilib/includes -Ilib -I. -DHAVE_CONFIG_H \ + fuzz/ksl.cc -o $OUT/ksl \ + $LIB_FUZZING_ENGINE lib/.libs/libngtcp2.a + +zip -j $OUT/decode_frame_seed_corpus.zip fuzz/corpus/decode_frame/* +zip -j $OUT/ksl_seed_corpus.zip fuzz/corpus/ksl/* diff --git a/.clusterfuzzlite/project.yaml b/.clusterfuzzlite/project.yaml new file mode 100644 index 0000000..b478801 --- /dev/null +++ b/.clusterfuzzlite/project.yaml @@ -0,0 +1 @@ +language: c++ |