From 5a8f946c92fae6918ad10c35131d25e6f245b035 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 13 May 2018 12:15:46 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8273 --- MagickCore/draw.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.40.0