mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-25 10:50:08 +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:
parent
c0ac069982
commit
935494a10e
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
Mon Oct 21 09:57:10 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: tried to fix bug #91500 where doc->children may
|
||||
be overriden by a call to xmlParseBalancedChunkMemory()
|
||||
|
||||
Mon Oct 21 09:04:32 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* catalog.c: tried to fix bug #90945 w.r.t. parsing of system
|
||||
identifiers in SGML catalogs containing '&'
|
||||
|
||||
Sun Oct 20 23:31:47 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* python/types.c: fixed bugs when passing result value tree
|
||||
|
@ -1954,7 +1954,7 @@ xmlParseSGMLCatalogPubid(const xmlChar *cur, xmlChar **id) {
|
||||
"malloc of %d byte failed\n", size);
|
||||
return(NULL);
|
||||
}
|
||||
while (xmlIsPubidChar(*cur)) {
|
||||
while (xmlIsPubidChar(*cur) || (*cur == '?')) {
|
||||
if ((*cur == stop) && (stop != ' '))
|
||||
break;
|
||||
if ((stop == ' ') && (IS_BLANK(*cur)))
|
||||
|
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user