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

diff --git a/coders/pango.c b/coders/pango.c
index 0fe0be2b22..fd9040bc4f 100644
--- a/coders/pango.c
+++ b/coders/pango.c
@@ -185,6 +185,8 @@ static Image *ReadPANGOImage(const ImageInfo *image_info,
   assert(exception->signature == MagickCoreSignature);
   image=AcquireImage(image_info,exception);
   (void) ResetImagePage(image,"0x0+0+0");
+  if ((image->columns != 0) && (image->rows != 0))
+    (void) SetImageBackgroundColor(image,exception);
   /*
     Format caption.
   */

openSUSE Build Service is sponsored by