mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
fix a problem in xmlSplitQName resulting in bug #334669 Daniel
* parser.c: fix a problem in xmlSplitQName resulting in bug #334669 Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Fri Oct 13 14:42:44 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* parser.c: fix a problem in xmlSplitQName resulting in bug #334669
|
||||||
|
|
||||||
Fri Oct 13 12:27:22 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
Fri Oct 13 12:27:22 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parser.c: fixed xmlIOParseDTD handling of @input in error case,
|
* parser.c: fixed xmlIOParseDTD handling of @input in error case,
|
||||||
|
6
parser.c
6
parser.c
@@ -2492,10 +2492,12 @@ xmlSplitQName(xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix) {
|
|||||||
buffer[len] = 0;
|
buffer[len] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* nasty but well=formed
|
|
||||||
if ((c == ':') && (*cur == 0)) {
|
if ((c == ':') && (*cur == 0)) {
|
||||||
|
if (buffer != NULL)
|
||||||
|
xmlFree(buffer);
|
||||||
|
*prefix = NULL;
|
||||||
return(xmlStrdup(name));
|
return(xmlStrdup(name));
|
||||||
} */
|
}
|
||||||
|
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
ret = xmlStrndup(buf, len);
|
ret = xmlStrndup(buf, len);
|
||||||
|
Reference in New Issue
Block a user