diff --git a/src/ddsrt/src/xmlparser.c b/src/ddsrt/src/xmlparser.c index c497624..828d40e 100644 --- a/src/ddsrt/src/xmlparser.c +++ b/src/ddsrt/src/xmlparser.c @@ -500,7 +500,7 @@ static int skip_comment (struct ddsrt_xmlp_state *st) if (!peek_chars (st, "", 0)) { + while (peek_char (st) != TOK_EOF && (peek_char (st) != '-' || !peek_chars (st, "-->", 0))) { next_char (st); } if (peek_chars (st, "-->", 1)) {