File ImageMagick-CVE-2020-19667.patch of Package ImageMagick.19146

Index: ImageMagick-7.0.7-34/coders/xpm.c
===================================================================
--- ImageMagick-7.0.7-34.orig/coders/xpm.c	2020-11-24 16:34:31.854810847 +0100
+++ ImageMagick-7.0.7-34/coders/xpm.c	2020-11-24 16:39:30.000790429 +0100
@@ -388,6 +388,7 @@ static Image *ReadXPMImage(const ImageIn
     /*
       Parse color.
     */
+    (void) memset(target,0,sizeof(target));
     (void) CopyMagickString(target,"gray",MagickPathExtent);
     q=(char *) NULL;
     if (strlen(p) > width)
openSUSE Build Service is sponsored by