File GraphicsMagick-CVE-2017-14314.patch of Package GraphicsMagick.9388

--- a/magick/render.c	Sun Sep 10 15:18:27 2017 -0500
+++ b/magick/render.c	Sun Sep 10 15:37:54 2017 -0500
@@ -2723,7 +2723,7 @@
                     MagickGetToken(p,&p,token,token_max_length);
                 }
                 graphic_context[n]->dash_pattern=
-		  MagickAllocateArray(double *,(2*x+1),sizeof(double));
+		  MagickAllocateArray(double *,(2*x+2),sizeof(double));
                 if (graphic_context[n]->dash_pattern == (double *) NULL)
                   {
                     status=MagickFail;



openSUSE Build Service is sponsored by