From 3d03024ab235cf09517b8b1125093a9062151da2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 13 Jun 2019 09:28:38 -0400 Subject: oss-fuzz initial integration --- fuzz/oss-fuzz-build | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 fuzz/oss-fuzz-build (limited to 'fuzz/oss-fuzz-build') 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 -- cgit v1.2.3-54-g00ecf