TryChopUpUncompressedBigTiff(): avoid potential division by zero. master only. GDAL Coverity CID 1400263

This commit is contained in:
Even Rouault 2019-03-23 11:05:49 +01:00
parent e3d738277b
commit dd2dfe1d6a
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -5878,7 +5878,7 @@ static void TryChopUpUncompressedBigTiff( TIFF* tif )
else
rowblock = 1;
rowblockbytes = TIFFVStripSize64(tif, rowblock);
if( rowblockbytes > 0x7FFFFFFFUL )
if( rowblockbytes == 0 || rowblockbytes > 0x7FFFFFFFUL )
{
/* In case of file with gigantic width */
return;