File ImageMagick-CVE-2019-12978.patch of Package ImageMagick

Index: ImageMagick-6.8.8-1/coders/pango.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/pango.c	2019-07-18 14:12:46.164442995 +0200
+++ ImageMagick-6.8.8-1/coders/pango.c	2019-07-18 14:12:46.172443038 +0200
@@ -177,6 +177,8 @@ static Image *ReadPANGOImage(const Image
   assert(exception->signature == MagickSignature);
   image=AcquireImage(image_info);
   (void) ResetImagePage(image,"0x0+0+0");
+  if ((image->columns != 0) && (image->rows != 0))
+    (void) SetImageBackgroundColor(image);
   /*
     Format caption.
   */
openSUSE Build Service is sponsored by