File ImageMagick-CVE-2025-43965.patch of Package ImageMagick.38425

Index: ImageMagick-6.8.8-1/coders/miff.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/miff.c
+++ ImageMagick-6.8.8-1/coders/miff.c
@@ -1260,6 +1260,7 @@ static Image *ReadMIFFImage(const ImageI
     if (quantum_format != UndefinedQuantumFormat)
       {
         status=SetQuantumFormat(image,quantum_info,quantum_format);
+        image->depth=quantum_info->depth;
         if (status == MagickFalse)
           ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
       }
openSUSE Build Service is sponsored by