mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-01 09:41:47 +03:00
try to get rid of parser loops for good. Daniel
* HTMLparser.c: try to get rid of parser loops for good. Daniel
This commit is contained in:
@ -2396,6 +2396,12 @@ htmlParseCharData(htmlParserCtxtPtr ctxt) {
|
||||
ctxt->sax->characters(ctxt->userData, buf, nbchar);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
* Loop detection
|
||||
*/
|
||||
if (cur == 0)
|
||||
ctxt->instate = XML_PARSER_EOF;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user