From: Cristy Date: Thu, 10 May 2018 00:29:22 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8188 X-Git-Tag: 7.0.7-32~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6680fed008c09733f2153759db00a3bb0d7514a6;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8188 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 90bf3ccf9..1a700beea 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -6223,7 +6223,7 @@ static size_t TracePath(PrimitiveInfo *primitive_info,const char *path, do { GetNextToken(p,&p,MagickPathExtent,token); - if (*token == ',') + if ((i != 0) && (*token == ',')) GetNextToken(p,&p,MagickPathExtent,token); x=StringToDouble(token,&next_token); if (token == next_token)