From: Cristy Date: Tue, 20 Mar 2018 23:44:04 +0000 (-0400) Subject: https://mail.google.com/mail/#inbox/162426a98e65ed90 X-Git-Tag: 7.0.7-28~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8239e79ee4c8cc34034838eefe4f34bab02c5fc7;p=imagemagick https://mail.google.com/mail/#inbox/162426a98e65ed90 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 0c78a06fc..24bf95b5f 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -1521,7 +1521,7 @@ static MagickBooleanType DrawDashPolygon(const DrawInfo *draw_info, for (i=0; primitive_info[i].primitive != UndefinedPrimitive; i++) ; number_vertices=(size_t) i; dash_polygon=(PrimitiveInfo *) AcquireQuantumMemory((size_t) - (2UL*(number_vertices+3UL)+1UL),sizeof(*dash_polygon)); + (2UL*(number_vertices+3UL)+3UL),sizeof(*dash_polygon)); if (dash_polygon == (PrimitiveInfo *) NULL) return(MagickFalse); clone_info=CloneDrawInfo((ImageInfo *) NULL,draw_info);