diff --git a/projects/xpdf/Dockerfile b/projects/xpdf/Dockerfile index 3c88d22e9..b692f7746 100755 --- a/projects/xpdf/Dockerfile +++ b/projects/xpdf/Dockerfile @@ -22,3 +22,4 @@ RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-latest.tar.gz WORKDIR $SRC COPY fuzz_*.cc $SRC/ COPY build.sh $SRC/ +COPY fuzz_pdfload.options $SRC/fuzz_pdfload.options diff --git a/projects/xpdf/build.sh b/projects/xpdf/build.sh index 15c88c090..584f50424 100755 --- a/projects/xpdf/build.sh +++ b/projects/xpdf/build.sh @@ -36,3 +36,6 @@ for fuzzer in zxdoc pdfload; do ./xpdf/libtestXpdfStatic.a ./fofi/libfofi.a ./goo/libgoo.a \ -I../ -I../goo -I../fofi -I. -I../xpdf done + +# Copy over options files +cp $SRC/fuzz_pdfload.options $OUT/ diff --git a/projects/xpdf/fuzz_pdfload.options b/projects/xpdf/fuzz_pdfload.options new file mode 100644 index 000000000..f9d09656c --- /dev/null +++ b/projects/xpdf/fuzz_pdfload.options @@ -0,0 +1,2 @@ +[libfuzzer] +detect_leaks=0