Merge branch 'skal65535-master-patch-56655' into 'master'

Fix potential overflow in gtStripContig()

See merge request libtiff/libtiff!163
This commit is contained in:
Even Rouault 2020-11-12 15:52:56 +00:00
commit d40507b815

View File

@ -945,6 +945,10 @@ gtStripContig(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h)
flip = setorientation(img);
if (flip & FLIP_VERTICALLY) {
if ( w > 0x7FFFFFFFu ) {
TIFFErrorExt(tif->tif_clientdata, TIFFFileName(tif), "Width overflow");
return (0);
}
y = h - 1;
toskew = -(int32)(w + w);
} else {