Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed a crash when reading PNG files with an invalid header. #385
In such a case (bad PNG file), we expect a
This hotfix replaces the assertions with conditional checks, so we can get the expected exception handling.
Steps to reproduce
The base class' constructor (
So inside the backend constructor, the
So for an invalid header,
But as the exception is thrown, the backend object gets deallocated.