mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
William's change allowed to spot a nasty bug in xmlDoRead if the result is
* parser.c: William's change allowed to spot a nasty bug in xmlDoRead if the result is well formed that ctxt->myDoc is not NULL and uses the context dictionnary. Daniel
This commit is contained in:
4
parser.c
4
parser.c
@ -12149,7 +12149,9 @@ xmlDoRead(xmlParserCtxtPtr ctxt, const char *URL, const char *encoding,
|
||||
else {
|
||||
ret = NULL;
|
||||
if (ctxt->myDoc != NULL) {
|
||||
ctxt->myDoc->dict = NULL;
|
||||
if ((ctxt->dictNames) &&
|
||||
(ctxt->myDoc->dict == ctxt->dict))
|
||||
xmlDictReference(ctxt->dict);
|
||||
xmlFreeDoc(ctxt->myDoc);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user