cd7ad3e15e
The png library uses setjmp/longjmp to throw exceptions when reading. If this is not set up, the png library calls abort(). This change handles the errors and throws a C++ exception instead. This issue was found by testing images from pngsuite at http://www.schaik.com/pngsuite/. These images are included and a unit test was added to test both images that should be successful and images that should throw an exception.
25 lines
716 B
Text
25 lines
716 B
Text
PNGSUITE
|
|
----------------
|
|
|
|
testset for PNG-(de)coders
|
|
created by Willem van Schaik
|
|
------------------------------------
|
|
|
|
This is a collection of graphics images created to test the png applications
|
|
like viewers, converters and editors. All (as far as that is possible)
|
|
formats supported by the PNG standard are represented.
|
|
|
|
The suite consists of the following files:
|
|
|
|
- PngSuite.README - this file
|
|
- PngSuite.LICENSE - the PngSuite is freeware
|
|
- PngSuite.png - image with PngSuite logo
|
|
- PngSuite.tgz - archive of all PNG testfiles
|
|
- PngSuite.zip - same in .zip format for PCs
|
|
|
|
|
|
--------
|
|
(c) Willem van Schaik
|
|
willem@schaik.com
|
|
Calgary, April 2011
|
|
|