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

From e5dae180b9236bccd73ce93bfce81e99232a8533 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Fri, 17 Nov 2017 07:36:35 -0500
Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/867

---
 coders/dds.c | 4 ++++
 1 file changed, 4 insertions(+)

Index: ImageMagick-6.8.8-1/coders/dds.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/dds.c	2018-04-06 12:04:55.582521324 +0200
+++ ImageMagick-6.8.8-1/coders/dds.c	2018-04-06 12:05:18.518922634 +0200
@@ -2360,6 +2360,8 @@ static MagickBooleanType SkipDXTMipmaps(
           break;
         w = DIV2(w);
         h = DIV2(h);
+        if ((w == 1) && (h == 1))
+          break;
       }
     }
   return(MagickTrue);
@@ -2407,6 +2409,8 @@ static MagickBooleanType SkipRGBMipmaps(
           break;
         w = DIV2(w);
         h = DIV2(h);
+        if ((w == 1) && (h == 1))
+          break;
       }
     }
   return(MagickTrue);