Menu ▾ ▴

#127 Fixed strange error handling in PNG plugin

None
closed
None
5
2018-07-31
2017-02-27
Anonymous
No

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

2 Attachments

Discussion

  • Hervé Drolon

    Hervé Drolon - 2017-03-04
    • assigned_to: Hervé Drolon
    • Group: -->
     
  • Hervé Drolon

    Hervé Drolon - 2018-07-28
    • status: open --> pending
     
  • Hervé Drolon

    Hervé Drolon - 2018-07-28

    Hi,
    Thanks for the patch, it is now merged with the SVN.
    See
    https://sourceforge.net/p/freeimage/svn/HEAD/tree/FreeImage/
    Hervé

     
  • Hervé Drolon

    Hervé Drolon - 2018-07-31
    • status: pending --> closed
     
  • Hervé Drolon

    Hervé Drolon - 2018-07-31

    Fixed in release 3.18.0

     

Anonymous
Anonymous

Add attachments
Cancel