From 3652ab98942b53e85e5cf265a3521b3e86b0ec4c Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 20 Apr 2019 15:33:58 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14369 --- MagickCore/xml-tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index ce4a42ebe..3597b826d 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -1403,6 +1403,8 @@ static char *ParseEntities(char *xml,char **entities,int state) if (*xml == '\n') (void) memmove(xml,xml+1,strlen(xml)); } + if (*xml == '\0') + return(ConstantString(xml)); for (xml=p; ; ) { while ((*xml != '\0') && (*xml != '&') && ((*xml != '%') || -- 2.40.0