File GraphicsMagick-CVE-2017-14342.patch of Package GraphicsMagick.7782

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: GraphicsMagick-1.2.5/coders/wpg.c
===================================================================
--- GraphicsMagick-1.2.5.orig/coders/wpg.c	2017-11-21 12:02:22.702017461 +0100
+++ GraphicsMagick-1.2.5/coders/wpg.c	2017-11-21 12:02:50.266482067 +0100
@@ -1222,7 +1222,7 @@ static Image *ReadWPGImage(const ImageIn
               image->columns=Bitmap2Header1.Width;
               image->rows=Bitmap2Header1.Heigth;  
 
-              if ((image->colors == 0) && (bpp != 24))
+              if ((image->colors == 0) && (bpp <= 16))
                 {
                   image->colors=1 << bpp;
                   if (!AllocateImageColormap(image,image->colors))
openSUSE Build Service is sponsored by