mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-13 09:01:53 +03:00
Christian Glahn found a problem with a recent patch to
* parser.c: Christian Glahn found a problem with a recent patch to xmlParseBalancedChunkMemoryRecover() * xmlschemas.c: Charles Bozeman fixed some Schemas validation problems * result/schemas/elem* result/schemas/seq* test/schemas.elem* test/schemas/seq*: added the test cases from Charles Daniel
This commit is contained in:
14
parser.c
14
parser.c
@ -9831,11 +9831,15 @@ xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
|
||||
ctxt->validate = 0;
|
||||
ctxt->loadsubset = 0;
|
||||
|
||||
content = doc->children;
|
||||
doc->children = NULL;
|
||||
xmlParseContent(ctxt);
|
||||
doc->children = content;
|
||||
|
||||
if ( doc != NULL ){
|
||||
content = doc->children;
|
||||
doc->children = NULL;
|
||||
xmlParseContent(ctxt);
|
||||
doc->children = content;
|
||||
}
|
||||
else {
|
||||
xmlParseContent(ctxt);
|
||||
}
|
||||
if ((RAW == '<') && (NXT(1) == '/')) {
|
||||
ctxt->errNo = XML_ERR_NOT_WELL_BALANCED;
|
||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||
|
Reference in New Issue
Block a user