File ImageMagick-CVE-2023-3745.patch of Package ImageMagick.40311
Index: ImageMagick-6.8.8-1/coders/tiff.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/tiff.c
+++ ImageMagick-6.8.8-1/coders/tiff.c
@@ -1341,6 +1341,9 @@ RestoreMSCWarning
if ((photometric != PHOTOMETRIC_SEPARATED) &&
(interlace == PLANARCONFIG_SEPARATE) && (bits_per_sample < 64))
method=ReadGenericMethod;
+ if ((photometric == PHOTOMETRIC_LOGLUV) ||
+ (photometric == PHOTOMETRIC_YCBCR))
+ method=ReadGenericMethod;
if (image->compression == JPEGCompression)
method=ReadGenericMethod;
if (TIFFIsTiled(tiff) != MagickFalse)