From 9ea06c2f6f004659543f25ac32c0542a28bac84b Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 21 Feb 2018 11:31:01 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6495 --- MagickCore/draw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index bea28ab0c..f0301ad5f 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -96,6 +96,7 @@ (void) ThrowMagickException(exception,GetMagickModule(),DrawError, \ "NonconformingDrawingPrimitiveDefinition","`%s'",token); \ status=MagickFalse; \ + break; \ } /* @@ -5876,6 +5877,8 @@ static size_t TracePath(PrimitiveInfo *primitive_info,const char *path, end.y=(double) (attribute == (int) 'T' ? y : point.y+y); points[i]=end; } + if (status == MagickFalse) + break; if (strchr("QqTt",last_attribute) == (char *) NULL) { points[0]=point; -- 2.40.0