TryChopUpUncompressedBigTiff(): avoid potential division by zero. master only. GDAL Coverity CID 1400263
This commit is contained in:
parent
e3d738277b
commit
dd2dfe1d6a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user