Changes to TiffReadEncodedStrip doesn't now check/stop on stripbytecounts=0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Changes to TiffReadEncodedStrip doesn't now check/stop on stripbytecounts=0

Michael Shiels [ MaS Software Inc ]

We have some corrupted tiffs we use for code validation/testing/verification.

 

And low and behold once I updated from 3.5.6/3.5.7 era to 4.0.7 – these are now readable according to the code.

 

Found to be changes to TIFFReadEncodedStrip calling directly into TIFFReadRawStrip1() for uncompressed files of certain conditions.

 

Without the extra validations being done on the stripbytecounts – the file becomes valid – which is not good.

 

In our case the strip offsets/lengths were stomped to ‘0’ by something – so a bit of a nasty file. 

 


_______________________________________________
Tiff mailing list: [hidden email]
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/