summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-01-04 21:58:10 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-01-04 21:58:10 (GMT)
commited7e2224542a595a8c1a5e9be92a467983329a28 (patch)
treea928cdba720874e3021aa64f9ade958c03c8a855 /Modules/pyexpat.c
parentc99823211bfc349ae48ff00a9155472ccea0816d (diff)
downloadcpython-ed7e2224542a595a8c1a5e9be92a467983329a28.zip
cpython-ed7e2224542a595a8c1a5e9be92a467983329a28.tar.gz
cpython-ed7e2224542a595a8c1a5e9be92a467983329a28.tar.bz2
Issue #9566: explain why (int)len cannot underflow
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index dea682d..21ab088 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -839,6 +839,7 @@ readinst(char *buf, int buf_size, PyObject *meth)
finally:
Py_XDECREF(arg);
Py_XDECREF(str);
+ /* len <= buf_size <= INT_MAX (see above) */
return (int)len;
}