ossfuzz: improve code coverage
fix .gif pattern matching add netpbm test images derived from the public domain pngsuite added more image types (downloaded in Dockerfile)
This commit is contained in:
parent
b77192742d
commit
dcb1116f13
@ -17,9 +17,13 @@ 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/jpg.tar.gz --directory $SRC/stb/tests
|
||||||
tar xvzf $SRC/stb/gif.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" | \
|
find $SRC/stb/tests -name "*.png" -o -name "*.jpg" -o -name "*.gif" \
|
||||||
xargs zip $OUT/stbi_read_fuzzer_seed_corpus.zip
|
-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
|
echo "" >> $SRC/stb/tests/gif.dict
|
||||||
cat $SRC/stb/tests/gif.dict $SRC/stb/tests/stb_png.dict > $OUT/stbi_read_fuzzer.dict
|
cat $SRC/stb/tests/gif.dict $SRC/stb/tests/stb_png.dict > $OUT/stbi_read_fuzzer.dict
|
||||||
|
BIN
tests/pbm/basi0g16.pgm
Normal file
BIN
tests/pbm/basi0g16.pgm
Normal file
Binary file not shown.
BIN
tests/pbm/basi2c16.ppm
Normal file
BIN
tests/pbm/basi2c16.ppm
Normal file
Binary file not shown.
BIN
tests/pbm/cdfn2c08.ppm
Normal file
BIN
tests/pbm/cdfn2c08.ppm
Normal file
Binary file not shown.
BIN
tests/pbm/cdun2c08.ppm
Normal file
BIN
tests/pbm/cdun2c08.ppm
Normal file
Binary file not shown.
BIN
tests/pbm/comment.pgm
Normal file
BIN
tests/pbm/comment.pgm
Normal file
Binary file not shown.
BIN
tests/pbm/ctfn0g04.pgm
Normal file
BIN
tests/pbm/ctfn0g04.pgm
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user