From: Florian Brosch Date: Mon, 30 Jan 2012 01:42:23 +0000 (+0100) Subject: gtkdoc-parser: Fix possible infinite loop X-Git-Tag: 0.37.1~3^2~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fcfa5c77bad07ac29415a927db30be9cee47be;p=thirdparty%2Fvala.git gtkdoc-parser: Fix possible infinite loop --- diff --git a/src/libvaladoc/documentation/gtkdoccommentparser.vala b/src/libvaladoc/documentation/gtkdoccommentparser.vala index d73003aaf..36544c08c 100644 --- a/src/libvaladoc/documentation/gtkdoccommentparser.vala +++ b/src/libvaladoc/documentation/gtkdoccommentparser.vala @@ -548,9 +548,7 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator { ListItem item = factory.create_list_item (); - while (current.type != TokenType.XML_CLOSE && current.type != TokenType.EOF) { - item.content.add_all (parse_mixed_content ()); - } + item.content.add_all (parse_mixed_content ()); if (!check_xml_close_tag ("listitem")) { this.report_unexpected_token (current, ""); @@ -626,6 +624,12 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator { Content.List list = factory.create_list (); list.bullet = bullet_type; +// if (current.type == TokenType.XML_OPEN && current.content == "title") { + // TODO +// parse_docbook_title (); +// parse_docbook_spaces (); +// } + while (current.type == TokenType.XML_OPEN) { if (current.content == "listitem") { list.items.add (parse_docbook_listitem ());