aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/oss-fuzz-build
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-13 15:28:38 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-13 15:28:38 +0200
commit3d03024ab235cf09517b8b1125093a9062151da2 (patch)
treec67ed01909153d996e3a14411c9f2141cb3f3ed2 /fuzz/oss-fuzz-build
parentd263a0493add9ea4bd6b7dae129cfc79b3108067 (diff)
downloadqpdf-3d03024ab235cf09517b8b1125093a9062151da2.tar.zst
oss-fuzz initial integration
Diffstat (limited to 'fuzz/oss-fuzz-build')
-rwxr-xr-xfuzz/oss-fuzz-build18
1 files changed, 18 insertions, 0 deletions
diff --git a/fuzz/oss-fuzz-build b/fuzz/oss-fuzz-build
new file mode 100755
index 00000000..8a0b7d42
--- /dev/null
+++ b/fuzz/oss-fuzz-build
@@ -0,0 +1,18 @@
+#!/bin/bash -e
+
+# This is used invoked from
+# https://github.com/google/oss-fuzz/blob/master/projects/qpdf/build.sh
+
+# It should be run from the top level directory of a clean checkout of
+# qpdf. It is also exercised in ../azure-pipelines/build-fuzzer
+
+./configure \
+ --enable-oss-fuzz \
+ --enable-static \
+ --disable-shared \
+ --prefix="$WORK" \
+ LDFLAGS="-L$WORK/lib" \
+ CPPFLAGS="-I$WORK/include" \
+ LIBS="-pthread"
+make -j$(nproc) install
+make install_fuzz