From a0a8653a7d33a2d43966d46601b20af0bfe00cf6 Mon Sep 17 00:00:00 2001 From: Randy Date: Sat, 10 Jul 2021 15:29:39 +0200 Subject: [PATCH 1/2] attempt to fix issue with CIFuzz --- tests/ossfuzz.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/ossfuzz.sh b/tests/ossfuzz.sh index 4b8fd27..104f033 100755 --- a/tests/ossfuzz.sh +++ b/tests/ossfuzz.sh @@ -15,10 +15,6 @@ find $SRC/stb/tests/pngsuite -name "*.png" | \ cp $SRC/stb/tests/stb_png.dict $OUT/stb_png_read_fuzzer.dict -tar xvzf $SRC/stb/jpg.tar.gz --directory $SRC/stb/tests -tar xvzf $SRC/stb/gif.tar.gz --directory $SRC/stb/tests -unzip $SRC/stb/bmp.zip -d $SRC/stb/tests -unzip $SRC/stb/tga.zip -d $SRC/stb/tests find $SRC/stb/tests -name "*.png" -o -name "*.jpg" -o -name "*.gif" \ -o -name "*.bmp" -o -name "*.tga" -o -name "*.TGA" \ From af4c6731749c0b4a940d0055d254b5fd2f911062 Mon Sep 17 00:00:00 2001 From: Randy Date: Sat, 10 Jul 2021 15:51:11 +0200 Subject: [PATCH 2/2] change directory for seed corpus downloads --- tests/ossfuzz.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/ossfuzz.sh b/tests/ossfuzz.sh index 104f033..2db2060 100755 --- a/tests/ossfuzz.sh +++ b/tests/ossfuzz.sh @@ -15,11 +15,15 @@ find $SRC/stb/tests/pngsuite -name "*.png" | \ cp $SRC/stb/tests/stb_png.dict $OUT/stb_png_read_fuzzer.dict +tar xvzf $SRC/stbi/jpg.tar.gz --directory $SRC/stb/tests +tar xvzf $SRC/stbi/gif.tar.gz --directory $SRC/stb/tests +unzip $SRC/stbi/bmp.zip -d $SRC/stb/tests +unzip $SRC/stbi/tga.zip -d $SRC/stb/tests find $SRC/stb/tests -name "*.png" -o -name "*.jpg" -o -name "*.gif" \ -o -name "*.bmp" -o -name "*.tga" -o -name "*.TGA" \ -o -name "*.ppm" -o -name "*.pgm" \ | xargs zip $OUT/stbi_read_fuzzer_seed_corpus.zip -echo "" >> $SRC/stb/tests/gif.dict -cat $SRC/stb/tests/gif.dict $SRC/stb/tests/stb_png.dict > $OUT/stbi_read_fuzzer.dict +echo "" >> $SRC/stbi/gif.dict +cat $SRC/stbi/gif.dict $SRC/stb/tests/stb_png.dict > $OUT/stbi_read_fuzzer.dict