shithub: rgbds

Download patch

ref: 531092f5bdc790c52827dce30dfc29c073ccaa15
parent: 4c51792f15e8c2732e5e915c853324d13b4bcc71
author: ISSOtm <[email protected]>
date: Sat May 14 18:27:14 EDT 2022

Add corrupted PNGs to check error handling

This is not intended to test libpng as much as checking that
we behave correctly if libpng gives us an error

--- /dev/null
+++ b/test/gfx/damaged1.err
@@ -1,0 +1,2 @@
+FATAL: Error reading input image ("damaged1.png"): IDAT: invalid code -- missing end-of-block
+Conversion aborted after 1 error
binary files /dev/null b/test/gfx/damaged1.png differ
--- /dev/null
+++ b/test/gfx/damaged2.err
@@ -1,0 +1,2 @@
+FATAL: Error reading input image ("damaged2.png"): IDAT: invalid code -- missing end-of-block
+Conversion aborted after 1 error
binary files /dev/null b/test/gfx/damaged2.png differ
--- /dev/null
+++ b/test/gfx/damaged9.err
@@ -1,0 +1,2 @@
+FATAL: Error reading input image ("damaged9.png"): IDAT: invalid code -- missing end-of-block
+Conversion aborted after 1 error
binary files /dev/null b/test/gfx/damaged9.png differ