]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8273
authorCristy <urban-warrior@imagemagick.org>
Sun, 13 May 2018 16:15:46 +0000 (12:15 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 13 May 2018 16:15:46 +0000 (12:15 -0400)
MagickCore/draw.c

index 26e665f9ec94c1721ba20ff4143e0edccc22feb8..02c8a6275bcba3c55cb9fd45b973eb21842cab97 100644 (file)
@@ -2588,6 +2588,11 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
               Take a node from within the MVG document, and duplicate it here.
             */
             GetNextToken(q,&q,extent,token);
+            if (*token == '\0')
+              {
+                status=MagickFalse;
+                break;
+              }
             clip_path=GetNodeByURL(primitive,token);
             if (clip_path != (char *) NULL)
               {