File ImageMagick-CVE-2014-8354.patch of Package ImageMagick.8212

http://trac.imagemagick.org/changeset/16765
Index: magick/resize.c
===================================================================
--- magick/resize.c.orig	2014-03-13 17:55:34.000000000 +0100
+++ magick/resize.c	2014-11-04 10:05:45.539174034 +0100
@@ -2560,6 +2560,8 @@
         ((MagickRealType) (start+n)-bisect+0.5));
       density+=contribution[n].weight;
     }
+    if (n == 0)
+      continue;
     if ((density != 0.0) && (density != 1.0))
       {
         register ssize_t
@@ -2803,6 +2805,8 @@
         ((MagickRealType) (start+n)-bisect+0.5));
       density+=contribution[n].weight;
     }
+    if (n == 0)
+      continue;
     if ((density != 0.0) && (density != 1.0))
       {
         register ssize_t