MSVC optimizer doesn't see throw in error handling function and removes catch block as dead code.
Throwing error from PNG internals is dangerous, so replaced with longjmp.
Error handler called on PNG with attached ICC: it's enough to load PNG image, create ICC from given .dat file and save image.
I've found this issue when attempted to debug FILE* object leak which leads to empty and locked for deletion PNG file
Anonymous
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Sorry, I've messed up declarations order in proposed patch.
Correct patch attached.
Hi,
Thanks for the patch, it is now merged with the SVN.
See
https://sourceforge.net/p/freeimage/svn/HEAD/tree/FreeImage/
Hervé
Fixed in release 3.18.0