File ImageMagick-CVE-2025-43965.patch of Package ImageMagick.38524
Index: ImageMagick-7.1.0-9/coders/miff.c
===================================================================
--- ImageMagick-7.1.0-9.orig/coders/miff.c
+++ ImageMagick-7.1.0-9/coders/miff.c
@@ -1307,6 +1307,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)
ThrowMIFFException(ResourceLimitError,"MemoryAllocationFailed");
}