mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
allocation error #119784 raised by Oliver Stoeneberg Daniel
* HTMLparser.c: allocation error #119784 raised by Oliver Stoeneberg Daniel
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Fri Aug 15 01:37:10 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* HTMLparser.c: allocation error #119784 raised by Oliver Stoeneberg
|
||||||
|
|
||||||
Fri Aug 15 00:41:58 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
Fri Aug 15 00:41:58 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* uri.c: fixing an use of strcpy() where both strings overlap
|
* uri.c: fixing an use of strcpy() where both strings overlap
|
||||||
|
@ -4273,7 +4273,7 @@ htmlCreateDocParserCtxt(xmlChar *cur, const char *encoding ATTRIBUTE_UNUSED) {
|
|||||||
|
|
||||||
if (ctxt->input->encoding != NULL)
|
if (ctxt->input->encoding != NULL)
|
||||||
xmlFree((xmlChar *) ctxt->input->encoding);
|
xmlFree((xmlChar *) ctxt->input->encoding);
|
||||||
ctxt->input->encoding = (const xmlChar *) encoding;
|
ctxt->input->encoding = xmlStrdup((const xmlChar *) encoding);
|
||||||
|
|
||||||
enc = xmlParseCharEncoding(encoding);
|
enc = xmlParseCharEncoding(encoding);
|
||||||
/*
|
/*
|
||||||
@ -4285,7 +4285,6 @@ htmlCreateDocParserCtxt(xmlChar *cur, const char *encoding ATTRIBUTE_UNUSED) {
|
|||||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||||
ctxt->sax->error(ctxt->userData,
|
ctxt->sax->error(ctxt->userData,
|
||||||
"Unsupported encoding %s\n", encoding);
|
"Unsupported encoding %s\n", encoding);
|
||||||
ctxt->input->encoding = NULL;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user