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

Index: ImageMagick-6.8.8-1/coders/xpm.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/xpm.c	2020-11-24 16:41:22.217547863 +0100
+++ ImageMagick-6.8.8-1/coders/xpm.c	2020-11-24 16:42:17.357920051 +0100
@@ -378,6 +378,7 @@ static Image *ReadXPMImage(const ImageIn
     /*
       Parse color.
     */
+    (void) memset(target,0,sizeof(target));
     (void) CopyMagickString(target,"gray",MaxTextExtent);
     q=ParseXPMColor(p+width);
     if (q != (char *) NULL)
openSUSE Build Service is sponsored by