From 89ca9bf1736715c9d5c185360c03861fc8ffbfb3 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 21 Feb 2018 12:24:23 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6489 --- MagickCore/xml-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index c19e85c6d..d9e4f11b0 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -2033,7 +2033,8 @@ MagickExport XMLTreeInfo *NewXMLTree(const char *xml,ExceptionInfo *exception) p+=strcspn(p,XMLWhitespace "/>"); while (isspace((int) ((unsigned char) *p)) != 0) *p++='\0'; - if (ignore_depth == 0) + if (((isalpha((int) ((unsigned char) *p)) != 0) || (*p == '_')) && + (ignore_depth == 0)) { if ((*p != '\0') && (*p != '/') && (*p != '>')) { -- 2.40.0