[Expat-checkins] expat/xmlwf xmlfile.c,1.16,1.17
Karl Waclawek
kwaclaw at users.sourceforge.net
Fri Apr 14 20:02:11 CEST 2006
Update of /cvsroot/expat/expat/xmlwf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11872
Modified Files:
xmlfile.c
Log Message:
Added a comment about processFile giving problems on files larger than INT_MAX.
Index: xmlfile.c
===================================================================
RCS file: /cvsroot/expat/expat/xmlwf/xmlfile.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- xmlfile.c 25 Dec 2005 17:05:10 -0000 1.16
+++ xmlfile.c 14 Apr 2006 18:02:08 -0000 1.17
@@ -69,14 +69,15 @@
else
ftprintf(stderr, T("%s: (unknown message %d)\n"), filename, code);
}
-
+
+/* This implementation will give problems on files larger than INT_MAX. */
static void
processFile(const void *data, size_t size,
const XML_Char *filename, void *args)
{
XML_Parser parser = ((PROCESS_ARGS *)args)->parser;
int *retPtr = ((PROCESS_ARGS *)args)->retPtr;
- if (XML_Parse(parser, (const char *)data, size, 1) == XML_STATUS_ERROR) {
+ if (XML_Parse(parser, (const char *)data, (int)size, 1) == XML_STATUS_ERROR) {
reportError(parser, filename);
*retPtr = 0;
}
More information about the Expat-checkins
mailing list