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
This commit is contained in:
ISSOtm
2022-05-14 22:27:14 +02:00
committed by Eldred Habert
parent 4c51792f15
commit 531092f5bd
6 changed files with 6 additions and 0 deletions

2
test/gfx/damaged1.err Normal file
View File

@@ -0,0 +1,2 @@
FATAL: Error reading input image ("damaged1.png"): IDAT: invalid code -- missing end-of-block
Conversion aborted after 1 error

BIN
test/gfx/damaged1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

2
test/gfx/damaged2.err Normal file
View File

@@ -0,0 +1,2 @@
FATAL: Error reading input image ("damaged2.png"): IDAT: invalid code -- missing end-of-block
Conversion aborted after 1 error

BIN
test/gfx/damaged2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

2
test/gfx/damaged9.err Normal file
View File

@@ -0,0 +1,2 @@
FATAL: Error reading input image ("damaged9.png"): IDAT: invalid code -- missing end-of-block
Conversion aborted after 1 error

BIN
test/gfx/damaged9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B