From: Cristy Date: Tue, 12 Sep 2017 19:35:09 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-3~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeb00e6f1b18a004f253a6fd4aa41dcf02d348e2;p=imagemagick ... --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 632060dbd..2c5a5e926 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2643,7 +2643,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, GetNextToken(r,&r,extent,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) {