File ImageMagick-CVE-2022-44267,44268.patch of Package ImageMagick.30356

Index: ImageMagick-7.0.7-34/MagickCore/property.c
===================================================================
--- ImageMagick-7.0.7-34.orig/MagickCore/property.c
+++ ImageMagick-7.0.7-34/MagickCore/property.c
@@ -4410,6 +4410,7 @@ MagickExport MagickBooleanType SetImageP
           return(MagickFalse);
         }
 #endif
+#if 0  /* security risk -- disable for now */
       if (LocaleCompare("profile",property) == 0)
         {
           ImageInfo
@@ -4427,6 +4428,7 @@ MagickExport MagickBooleanType SetImageP
           image_info=DestroyImageInfo(image_info);
           return(MagickTrue);
         }
+#endif
       break; /* not an attribute, add as a property */
     }
     case 'R':
openSUSE Build Service is sponsored by