From: Cristy Date: Sun, 13 May 2018 16:15:46 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8273 X-Git-Tag: 7.0.7-32~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a8f946c92fae6918ad10c35131d25e6f245b035;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8273 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 26e665f9e..02c8a6275 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -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) {