]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8188
authorCristy <urban-warrior@imagemagick.org>
Thu, 10 May 2018 00:29:22 +0000 (20:29 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 10 May 2018 00:29:22 +0000 (20:29 -0400)
MagickCore/draw.c

index 90bf3ccf9ef2212c8728de13ff092555035f62b3..1a700beea5f921ea0616c064ffbd2f7c194037ee 100644 (file)
@@ -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)