Hello,
This patch checks fixes #346 by checking the type of the TIFFTAG_RICHTIFFIPTC and only swapping the data if it is TIFF_LONG.
I am not really used to FreeImage, so this might be the best way to do it... sorry in advance!
Regards,
Raphaël
Anonymous
I had some heap corruption on some tif files and this patch fixed my problems too! Thanks a lot!
You're welcome! Happy to help :)