summaryrefslogtreecommitdiff
path: root/Build/source/libs/libpng/libpng-src/tests/pngtest-badpngs
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/libpng/libpng-src/tests/pngtest-badpngs')
-rw-r--r--Build/source/libs/libpng/libpng-src/tests/pngtest-badpngs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/libs/libpng/libpng-src/tests/pngtest-badpngs b/Build/source/libs/libpng/libpng-src/tests/pngtest-badpngs
new file mode 100644
index 00000000000..77775232b2c
--- /dev/null
+++ b/Build/source/libs/libpng/libpng-src/tests/pngtest-badpngs
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# various crashers
+# using --relaxed because some come from fuzzers that don't maintain CRC's
+
+./pngtest --relaxed ${srcdir}/contrib/testpngs/crashers/badcrc.png
+./pngtest --relaxed ${srcdir}/contrib/testpngs/crashers/badadler.png
+./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/bad_iCCP.png
+./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/empty_ancillary_chunks.png
+./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/huge_*_chunk.png \
+ ${srcdir}/contrib/testpngs/crashers/huge_*safe_to_copy.png
+
+exec ./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/huge_IDAT.png