summaryrefslogtreecommitdiffstats
path: root/.clusterfuzzlite/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.clusterfuzzlite/build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/.clusterfuzzlite/build.sh b/.clusterfuzzlite/build.sh
new file mode 100755
index 0000000..5c68ce5
--- /dev/null
+++ b/.clusterfuzzlite/build.sh
@@ -0,0 +1,16 @@
+#!/bin/bash -eu
+
+autoreconf -i
+./configure
+make -j$(nproc)
+
+$CXX $CXXFLAGS -std=c++17 -Ilib/includes \
+ fuzz/fuzz_http3serverreq.cc -o $OUT/fuzz_http3serverreq \
+ $LIB_FUZZING_ENGINE lib/.libs/libnghttp3.a
+
+$CXX $CXXFLAGS -std=c++17 -Ilib/includes \
+ fuzz/fuzz_qpackdecoder.cc -o $OUT/fuzz_qpackdecoder \
+ $LIB_FUZZING_ENGINE lib/.libs/libnghttp3.a
+
+zip -j $OUT/fuzz_http3serverreq_seed_corpus.zip fuzz/corpus/fuzz_http3serverreq/*
+zip -j $OUT/fuzz_qpackdecoder_seed_corpus.zip fuzz/corpus/fuzz_qpackdecoder/*