From 5efab90bb409a3722dd63a3176da6e7b2f6a2fc2 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 3 May 2018 15:28:09 -0400 Subject: [PATCH] ... --- MagickCore/draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 51ee7e675..ac8b21a08 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -6495,7 +6495,8 @@ static PrimitiveInfo *TraceStrokePolygon(const Image *image, const DrawInfo *draw_info,const PrimitiveInfo *primitive_info) { #define CheckPathExtent(pad) \ - if ((q+(pad)) >= (ssize_t) max_strokes) \ + if (((p+(pad)) >= (ssize_t) max_strokes) || \ + ((q+(pad)) >= (ssize_t) max_strokes)) \ { \ if (~max_strokes < (pad)) \ { \ -- 2.40.0