From a79a3fdb5f61a18000ad388b2e5d570899b7d486 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 3 Apr 2021 05:03:51 +0200 Subject: [PATCH] [mupdf] Copy fuzzer glue code to dir outside of git repo (#5504) This makes it easier to build the fuzzer using a locally checked out git repo without having to manually copy the fuzzer glue code into the locally checked out git repo first. --- projects/mupdf/Dockerfile | 2 +- projects/mupdf/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mupdf/Dockerfile b/projects/mupdf/Dockerfile index 160ce0ee9..8d1668ed3 100644 --- a/projects/mupdf/Dockerfile +++ b/projects/mupdf/Dockerfile @@ -22,5 +22,5 @@ RUN git clone --depth 1 https://github.com/mozilla/pdf.js pdf.js && \ rm -rf pdf.js ADD https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/pdf.dict $SRC/pdf_fuzzer.dict WORKDIR mupdf -COPY *.cc source/fuzz/ +COPY *.cc $SRC/ COPY build.sh *.options $SRC/ diff --git a/projects/mupdf/build.sh b/projects/mupdf/build.sh index d06190698..406e45bb0 100755 --- a/projects/mupdf/build.sh +++ b/projects/mupdf/build.sh @@ -19,7 +19,7 @@ LDFLAGS="$CXXFLAGS" make -j$(nproc) HAVE_GLUT=no build=debug OUT=$WORK fuzz_target=pdf_fuzzer $CXX $CXXFLAGS -std=c++11 -Iinclude \ - source/fuzz/pdf_fuzzer.cc -o $OUT/$fuzz_target \ + $SRC/pdf_fuzzer.cc -o $OUT/$fuzz_target \ $LIB_FUZZING_ENGINE $WORK/libmupdf.a $WORK/libmupdf-third.a mv $SRC/{*.zip,*.dict,*.options} $OUT