From 699f291c4465cbb2ce8b78e6ba03f41d17775132 Mon Sep 17 00:00:00 2001 From: Google AutoFuzz Team Date: Tue, 20 Aug 2019 14:36:06 -0400 Subject: [PATCH] [libgd] Add more fileformats to libgd's fuzzer (#2720) * Add more fileformats to libgd's fuzzer * Fix some corpus path-related issue --- projects/libgd/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/libgd/build.sh b/projects/libgd/build.sh index bb95898d3..c49d21b4f 100755 --- a/projects/libgd/build.sh +++ b/projects/libgd/build.sh @@ -24,7 +24,7 @@ sed -i'' -e 's/INT_MAX/100000/' "$SRC/libgd/src/gd_security.c" ./configure --prefix="$WORK" --disable-shared make -j$(nproc) install -for target in Bmp Gif Tga Gd Gd2 WBMP; do +for target in Bmp Gd Gd2 Gif Jpeg Png Tga Tiff WBMP Webp; do lowercase=$(echo $target | tr "[:upper:]" "[:lower:]") $CXX $CXXFLAGS -std=c++11 -I"$WORK/include" -L"$WORK/lib" \ -DFUZZ_GD_FORMAT=$target \ @@ -34,7 +34,7 @@ done mkdir afl_testcases (cd afl_testcases; tar xvf "$SRC/afl_testcases.tgz") -for format in bmp gif; do +for format in bmp gif png webp; do mkdir $format find afl_testcases -type f -name '*.'$format -exec mv -n {} $format/ \; zip -rj $format.zip $format/