1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-28 07:21:26 +03:00

ouch a non-defined namespace could lead to a crash, fixed #61215 Daniel

* SAX.c: ouch a non-defined namespace could lead to a crash, fixed #61215
Daniel
This commit is contained in:
Daniel Veillard 2001-10-04 14:51:06 +00:00
parent 7dd0570d4e
commit 651f947163
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Oct 4 16:47:44 CEST 2001 Daniel Veillard <daniel@veillard.com>
* SAX.c: ouch a non-defined namespace could lead to a crash,
fixed #61215
Thu Oct 4 16:24:26 CEST 2001 Daniel Veillard <daniel@veillard.com>
* parserInternals.c: closed bug #61054

2
SAX.c
View File

@ -1139,7 +1139,7 @@ startElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
* set the namespace node, making sure that if the default namspace
* is unbound on a parent we simply kee it NULL
*/
if ((ns != NULL) && (ns->href[0] != 0))
if ((ns != NULL) && (ns->href != NULL) && (ns->href[0] != 0))
xmlSetNs(ret, ns);
/*