[Python-checkins] python/dist/src/Modules pyexpat.c,2.89,2.89.2.1
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Fri Mar 4 15:38:25 CET 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24523/Modules
Modified Files:
Tag: release24-maint
pyexpat.c
Log Message:
Patches #925152, #1118602: Avoid reading after the end of the buffer
in pyexpat.GetInputContext.
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.89
retrieving revision 2.89.2.1
diff -u -d -r2.89 -r2.89.2.1
--- pyexpat.c 13 Oct 2004 19:50:11 -0000 2.89
+++ pyexpat.c 4 Mar 2005 14:38:07 -0000 2.89.2.1
@@ -1082,7 +1082,7 @@
= XML_GetInputContext(self->itself, &offset, &size);
if (buffer != NULL)
- result = PyString_FromStringAndSize(buffer + offset, size);
+ result = PyString_FromStringAndSize(buffer + offset, size - offset);
else {
result = Py_None;
Py_INCREF(result);
More information about the Python-checkins
mailing list