[Python-checkins] python/dist/src/Modules pyexpat.c,2.89,2.90
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Fri Mar 4 15:37:04 CET 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24249/Modules
Modified Files:
pyexpat.c
Log Message:
Patches #925152, #1118602: Avoid reading after the end of the buffer
in pyexpat.GetInputContext. Will backport to 2.4.
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.89
retrieving revision 2.90
diff -u -d -r2.89 -r2.90
--- pyexpat.c 13 Oct 2004 19:50:11 -0000 2.89
+++ pyexpat.c 4 Mar 2005 14:37:01 -0000 2.90
@@ -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