From 9475dd43717280a23199bcd06b14ef741be27e73 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 13 Feb 2018 19:23:43 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6235 --- MagickCore/xml-tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index dfcfe8ccf..c19e85c6d 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -1721,6 +1721,8 @@ static MagickBooleanType ParseInternalDoctype(XMLTreeRoot *root,char *xml, /* Parse entity definitions. */ + if (strspn(xml+8,XMLWhitespace) == 0) + break; xml+=strspn(xml+8,XMLWhitespace)+8; c=xml; n=xml+strspn(xml,XMLWhitespace "%"); -- 2.40.0