1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

fixing bug 105049 for validity checking of content within recursive

* parser.c: fixing bug 105049 for validity checking of content
  within recursive entities.
Daniel
This commit is contained in:
Daniel Veillard
2003-02-04 15:07:21 +00:00
parent e5b110b384
commit 8d589046b4
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Tue Feb 4 16:05:53 CET 2003 Daniel Veillard <daniel@veillard.com>
* parser.c: fixing bug 105049 for validity checking of content
within recursive entities.
Tue Feb 4 15:40:54 CET 2003 Daniel Veillard <daniel@veillard.com> Tue Feb 4 15:40:54 CET 2003 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: try to fix # 105049 * HTMLparser.c: try to fix # 105049

View File

@ -9949,9 +9949,6 @@ xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt,
ctxt->instate = XML_PARSER_CONTENT; ctxt->instate = XML_PARSER_CONTENT;
ctxt->depth = oldctxt->depth + 1; ctxt->depth = oldctxt->depth + 1;
/*
* Doing validity checking on chunk doesn't make sense
*/
ctxt->validate = 0; ctxt->validate = 0;
ctxt->loadsubset = oldctxt->loadsubset; ctxt->loadsubset = oldctxt->loadsubset;
@ -9999,6 +9996,11 @@ xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt,
cur = ctxt->myDoc->children->children; cur = ctxt->myDoc->children->children;
*lst = cur; *lst = cur;
while (cur != NULL) { while (cur != NULL) {
if (oldctxt->validate && oldctxt->wellFormed &&
oldctxt->myDoc && oldctxt->myDoc->intSubset) {
oldctxt->valid &= xmlValidateElement(&oldctxt->vctxt,
oldctxt->myDoc, cur);
}
cur->parent = NULL; cur->parent = NULL;
cur = cur->next; cur = cur->next;
} }