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

Index: ImageMagick-6.8.8-1/magick/draw.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/draw.c	2018-03-05 19:42:07.820391922 +0100
+++ ImageMagick-6.8.8-1/magick/draw.c	2018-03-05 19:42:09.488420365 +0100
@@ -2726,7 +2726,7 @@ MagickExport MagickBooleanType DrawImage
                     GetMagickToken(p,&p,token);
                 }
                 graphic_context[n]->dash_pattern=(double *)
-                  AcquireQuantumMemory((size_t) (2UL*x+1UL),
+                  AcquireQuantumMemory((size_t) (2UL*x+2UL),
                   sizeof(*graphic_context[n]->dash_pattern));
                 if (graphic_context[n]->dash_pattern == (double *) NULL)
                   {