fixed #172260 redundant assignment. fixed xmlSAXParseDoc() and

* SAX.c: fixed #172260 redundant assignment.
* parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and
  xmlParseDoc() signatures #172257.
Daniel
This commit is contained in:
Daniel Veillard 2005-03-31 14:59:00 +00:00
parent 32acf0c3b4
commit 7331e5cab8
4 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Thu Mar 31 16:57:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
* SAX.c: fixed #172260 redundant assignment.
* parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and
xmlParseDoc() signatures #172257.
Thu Mar 31 16:11:10 CEST 2005 Daniel Veillard <daniel@veillard.com>
* parser.c: fix potential crash if ctxt->sax->ignorableWhitespace

1
SAX.c
View File

@ -116,7 +116,6 @@ inithtmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
hdlr->cdataBlock = xmlSAX2CDataBlock;
hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
hdlr->processingInstruction = NULL;
hdlr->comment = xmlSAX2Comment;
hdlr->warning = xmlParserWarning;
hdlr->error = xmlParserError;

View File

@ -825,7 +825,7 @@ XMLPUBFUN int XMLCALL
*/
#ifdef LIBXML_SAX1_ENABLED
XMLPUBFUN xmlDocPtr XMLCALL
xmlParseDoc (xmlChar *cur);
xmlParseDoc (const xmlChar *cur);
XMLPUBFUN xmlDocPtr XMLCALL
xmlParseFile (const char *filename);
XMLPUBFUN xmlDocPtr XMLCALL
@ -877,7 +877,7 @@ XMLPUBFUN int XMLCALL
int size);
XMLPUBFUN xmlDocPtr XMLCALL
xmlSAXParseDoc (xmlSAXHandlerPtr sax,
xmlChar *cur,
const xmlChar *cur,
int recovery);
XMLPUBFUN xmlDocPtr XMLCALL
xmlSAXParseMemory (xmlSAXHandlerPtr sax,

View File

@ -12212,7 +12212,7 @@ xmlCreateDocParserCtxt(const xmlChar *cur) {
*/
xmlDocPtr
xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) {
xmlDocPtr ret;
xmlParserCtxtPtr ctxt;
xmlSAXHandlerPtr oldsax = NULL;
@ -12253,7 +12253,7 @@ xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
*/
xmlDocPtr
xmlParseDoc(xmlChar *cur) {
xmlParseDoc(const xmlChar *cur) {
return(xmlSAXParseDoc(NULL, cur, 0));
}
#endif /* LIBXML_SAX1_ENABLED */