From: Cristy Date: Tue, 18 Jun 2019 17:49:26 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-50~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fe6a0e6c901b4c9a639c104cc3420239e387794;p=imagemagick ... --- diff --git a/coders/tiff.c b/coders/tiff.c index 97402f2cb..c476e90dd 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3618,7 +3618,8 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, } mode=endian_type == LSBEndian ? "wl" : "wb"; #if defined(TIFF_VERSION_BIG) - if (LocaleCompare(image_info->magick,"TIFF64") == 0) + if ((LocaleCompare(image_info->magick,"TIFF64") == 0) || + (((MagickOffsetType) image->columns*image->rows) > SSIZE_MAX)) mode=endian_type == LSBEndian ? "wl8" : "wb8"; #endif tiff=TIFFClientOpen(image->filename,mode,(thandle_t) image,TIFFReadBlob,