softsec-submission/part3/improve2/oss-fuzz.diff
2025-05-15 19:29:02 +02:00

26 lines
1 KiB
Diff

diff --git a/infra/helper.py b/infra/helper.py
index edf073458..a595dbfbb 100755
--- a/infra/helper.py
+++ b/infra/helper.py
@@ -1448,6 +1448,8 @@ def run_fuzzer(args):
'%s:/out' % args.project.out,
'-t',
BASE_RUNNER_IMAGE,
+ 'timeout',
+ '14400',
'run_fuzzer',
args.fuzzer_name,
] + args.fuzzer_args)
diff --git a/projects/libpng/Dockerfile b/projects/libpng/Dockerfile
index 6f281cd55..3017d4404 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 BRANCH_TO_CHECKOUT https://github.com/SekoiaTree/libpng.git
+#FUZZ_SEED_DISABLE RUN sed -i 's/libpng_read_fuzzer_seed_corpus\.zip/libpng_read_fuzzer_seed_corpus.zip.disabled/g' $SRC/build.sh
RUN cp libpng/contrib/oss-fuzz/build.sh $SRC
WORKDIR libpng