softsec-submission/part1/oss-fuzz.diff
2025-05-13 11:52:33 +02:00

13 lines
658 B
Diff

diff --git a/projects/libpng/Dockerfile b/projects/libpng/Dockerfile
index 6f281cd55..aecae58ac 100644
--- a/projects/libpng/Dockerfile
+++ b/projects/libpng/Dockerfile
@@ -19,6 +19,7 @@ RUN apt-get update && \
apt-get install -y make autoconf automake libtool zlib1g-dev
RUN git clone --depth 1 https://github.com/madler/zlib.git
-RUN git clone --depth 1 https://github.com/pnggroup/libpng.git
+RUN git clone --depth 1 --branch v1.6.48 https://github.com/pnggroup/libpng.git
RUN cp libpng/contrib/oss-fuzz/build.sh $SRC
+RUN sed -i 's/libpng_read_fuzzer_seed_corpus\.zip/libpng_read_fuzzer_seed_corpus.zip.disabled/g' $SRC/build.sh
WORKDIR libpng