]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14369
authorCristy <mikayla-grace@urban-warrior.org>
Sat, 20 Apr 2019 19:33:58 +0000 (15:33 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Sat, 20 Apr 2019 19:34:28 +0000 (15:34 -0400)
MagickCore/xml-tree.c

index ce4a42ebee36c6ca9a11af9b493840ead4012b04..3597b826df3bd93841c4a8dc11f39f7538693808 100644 (file)
@@ -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 != '%') ||