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:
parent
7dd0570d4e
commit
651f947163
@ -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
2
SAX.c
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user