diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 07:30:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 07:30:55 +0000 |
commit | 17e81f2cd1843f01838245eae7b5ed5edf83d6be (patch) | |
tree | a0f685dff11ce5a2dc546a7b46a48bae5d1c0140 /.clusterfuzzlite | |
parent | Initial commit. (diff) | |
download | ngtcp2-upstream.tar.xz ngtcp2-upstream.zip |
Adding upstream version 0.12.1+dfsg.upstream/0.12.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.clusterfuzzlite')
-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++ |