diff options
author | 2021-04-03 05:03:51 +0200 | |
---|---|---|
committer | 2021-04-02 20:03:51 -0700 | |
commit | a79a3fdb5f61a18000ad388b2e5d570899b7d486 (patch) | |
tree | ad8d57c5c2e271e736a3abba919dc72af31b837e /projects/mupdf | |
parent | 008c7ec1f548755f2e97d5c0ed7e163a42ad32dd (diff) |
[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.
Diffstat (limited to 'projects/mupdf')
-rw-r--r-- | projects/mupdf/Dockerfile | 2 | ||||
-rwxr-xr-x | projects/mupdf/build.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/projects/mupdf/Dockerfile b/projects/mupdf/Dockerfile index 160ce0ee..8d1668ed 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 d0619069..406e45bb 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 |