From 17e81f2cd1843f01838245eae7b5ed5edf83d6be Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 09:30:55 +0200 Subject: Adding upstream version 0.12.1+dfsg. Signed-off-by: Daniel Baumann --- .clusterfuzzlite/Dockerfile | 5 +++++ .clusterfuzzlite/build.sh | 16 ++++++++++++++++ .clusterfuzzlite/project.yaml | 1 + 3 files changed, 22 insertions(+) create mode 100644 .clusterfuzzlite/Dockerfile create mode 100755 .clusterfuzzlite/build.sh create mode 100644 .clusterfuzzlite/project.yaml (limited to '.clusterfuzzlite') 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++ -- cgit v1.2.3