[Python-checkins] r87746 - python/branches/py3k/Modules/pyexpat.c
victor.stinner
python-checkins at python.org
Tue Jan 4 22:58:10 CET 2011
Author: victor.stinner
Date: Tue Jan 4 22:58:10 2011
New Revision: 87746
Log:
Issue #9566: explain why (int)len cannot underflow
Modified:
python/branches/py3k/Modules/pyexpat.c
Modified: python/branches/py3k/Modules/pyexpat.c
==============================================================================
--- python/branches/py3k/Modules/pyexpat.c (original)
+++ python/branches/py3k/Modules/pyexpat.c Tue Jan 4 22:58:10 2011
@@ -839,6 +839,7 @@
finally:
Py_XDECREF(arg);
Py_XDECREF(str);
+ /* len <= buf_size <= INT_MAX (see above) */
return (int)len;
}
More information about the Python-checkins
mailing list