https://github.com/ImageMagick/ImageMagick/issues/1883
diff --git a/coders/tiff.c b/coders/tiff.c
index b533503..042a249 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -1826,7 +1826,7 @@
quantum_type=RGBQuantum;
if (TIFFScanlineSize(tiff) <= 0)
ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed");
- if ((1.0*TIFFScanlineSize(tiff)) > (2.5*GetBlobSize(image)))
+ if ((1.0*TIFFScanlineSize(tiff)) > (2.53*GetBlobSize(image)))
ThrowTIFFException(CorruptImageError,"InsufficientImageDataInFile");
number_pixels=MagickMax(TIFFScanlineSize(tiff),MagickMax((ssize_t)
image->columns*samples_per_pixel*pow(2.0,ceil(log(bits_per_sample)/