From 1d2ada930922c5ad6e1348b112d11e95b427d730 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Tue, 16 Jun 2020 15:07:37 +0100 Subject: [PATCH] Disabled leak check in xpdf. (#3992) --- projects/xpdf/Dockerfile | 1 + projects/xpdf/build.sh | 3 +++ projects/xpdf/fuzz_pdfload.options | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 projects/xpdf/fuzz_pdfload.options 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