From 9627eebf6a034834699dcc05023bb06733618f6b Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 28 Sep 2019 16:20:53 -0400 Subject: [PATCH] https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=36792 --- coders/tiff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 8114f05c1..93b438267 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3633,8 +3633,7 @@ 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) || - (((MagickOffsetType) image->columns*image->rows) > SSIZE_MAX)) + if (LocaleCompare(image_info->magick,"TIFF64") == 0) mode=endian_type == LSBEndian ? "wl8" : "wb8"; #endif tiff=TIFFClientOpen(image->filename,mode,(thandle_t) image,TIFFReadBlob, -- 2.40.0