1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +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:
Daniel Veillard 2003-09-26 23:27:25 +00:00
parent 7d515754a3
commit 9d8c1dfbb3
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sat Sep 27 01:25:39 CEST 2003 Daniel Veillard <daniel@veillard.com>
* 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.
Fri Sep 26 21:09:34 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parser.c: other patches from William Brack to avoid

View File

@ -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);
}
}