From: Eric Biggers Date: Fri, 31 Mar 2023 07:44:09 +0000 (-0700) Subject: xmlproc: fix parsing empty elements X-Git-Tag: v1.14.0~27 X-Git-Url: https://wimlib.net/git/?a=commitdiff_plain;h=cc5d081cc5509308f10a45cc4e076238d4348444;p=wimlib xmlproc: fix parsing empty elements --- diff --git a/src/xmlproc.c b/src/xmlproc.c index b0045aec..fdd5ce96 100644 --- a/src/xmlproc.c +++ b/src/xmlproc.c @@ -548,7 +548,7 @@ parse_element(const tchar **pp, struct xml_node *parent, int depth, CHECK(*p == '<'); p++; name_start = p; - while (!is_whitespace(*p) && *p != '>' && *p != '\0') + while (!is_whitespace(*p) && *p != '>' && *p != '/' && *p != '\0') p++; name_len = p - name_start; CHECK(name_len > 0);