From a49b7f7e2c0869d50fedea62a67bfb631e9e10a3 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sat, 2 Jan 2021 17:58:32 +0000 Subject: [PATCH] [pillow] Fix pillow corpus file name (#4903) * Fix Pillow corpus file name * Install extra test images for a better starting corpus This includes images that are either: * large * unclear license, so unable to distribute * cause antivirus hits --- projects/pillow/Dockerfile | 3 ++- projects/pillow/build.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/pillow/Dockerfile b/projects/pillow/Dockerfile index 2c2bafa98..f2c12310a 100644 --- a/projects/pillow/Dockerfile +++ b/projects/pillow/Dockerfile @@ -48,9 +48,10 @@ RUN apt-get install -y \ tk8.6-dev \ zlib1g-dev RUN git clone --depth 1 https://github.com/python-pillow/Pillow +# install extra test images for a better starting corpus +RUN cd Pillow && depends/install_extra_test_images.sh COPY build.sh $SRC/ COPY fuzz_* $SRC/Pillow WORKDIR $SRC/Pillow - diff --git a/projects/pillow/build.sh b/projects/pillow/build.sh index c2c8181e3..19c31a696 100644 --- a/projects/pillow/build.sh +++ b/projects/pillow/build.sh @@ -46,4 +46,4 @@ ASAN_OPTIONS=\$ASAN_OPTIONS:symbolize=1:external_symbolizer_path=\$this_dir/llvm chmod u+x $OUT/$fuzzer_basename done -find Tests/images Tests/icc Tests/fonts -print | zip -q $OUT/testfiles_fuzzer_seed_corpus.zip -@ +find Tests/images Tests/icc Tests/fonts -print | zip -q $OUT/fuzz_pillow_seed_corpus.zip -@