mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
tried to fix bug #91500 where doc->children may be overriden by a call to
* parser.c: tried to fix bug #91500 where doc->children may be overriden by a call to xmlParseBalancedChunkMemory() * catalog.c: tried to fix bug #90945 w.r.t. parsing of system identifiers in SGML catalogs containing '&' Daniel
This commit is contained in:
4
parser.c
4
parser.c
@ -9784,6 +9784,7 @@ xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
|
||||
xmlParserCtxtPtr ctxt;
|
||||
xmlDocPtr newDoc;
|
||||
xmlSAXHandlerPtr oldsax = NULL;
|
||||
xmlNodePtr content;
|
||||
int size;
|
||||
int ret = 0;
|
||||
|
||||
@ -9843,7 +9844,10 @@ xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
|
||||
ctxt->validate = 0;
|
||||
ctxt->loadsubset = 0;
|
||||
|
||||
content = doc->children;
|
||||
doc->children = NULL;
|
||||
xmlParseContent(ctxt);
|
||||
doc->children = content;
|
||||
|
||||
if ((RAW == '<') && (NXT(1) == '/')) {
|
||||
ctxt->errNo = XML_ERR_NOT_WELL_BALANCED;
|
||||
|
Reference in New Issue
Block a user