mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
parser: Don't increase depth twice when parsing internal entities
Fix xmlParseBalancedChunkMemoryInternal.
This commit is contained in:
2
parser.c
2
parser.c
@@ -13181,7 +13181,7 @@ xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt,
|
||||
xmlAddChild((xmlNodePtr) ctxt->myDoc, newRoot);
|
||||
nodePush(ctxt, ctxt->myDoc->children);
|
||||
ctxt->instate = XML_PARSER_CONTENT;
|
||||
ctxt->depth = oldctxt->depth + 1;
|
||||
ctxt->depth = oldctxt->depth;
|
||||
|
||||
ctxt->validate = 0;
|
||||
ctxt->loadsubset = oldctxt->loadsubset;
|
||||
|
||||
Reference in New Issue
Block a user