File ImageMagick-CVE-2017-14342.patch of Package ImageMagick.8212

From 4e378ea8fb99e869768f34e900105e8c769adfcd Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Mon, 7 Aug 2017 15:18:47 -0400
Subject: [PATCH] ...

---
 coders/wpg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: ImageMagick-6.8.8-1/coders/wpg.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/wpg.c	2017-11-21 11:58:02.605636998 +0100
+++ ImageMagick-6.8.8-1/coders/wpg.c	2017-11-21 11:58:03.209647168 +0100
@@ -1104,7 +1104,7 @@ static Image *ReadWPGImage(const ImageIn
               status=SetImageExtent(image,image->columns,image->rows);
               if (status == MagickFalse)
                 break;
-              if ((image->colors == 0) && (bpp != 24))
+              if ((image->colors == 0) && (bpp <= 16))
                 {
                   image->colors=one << bpp;
                   if (!AcquireImageColormap(image,image->colors))