diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-04 21:58:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-04 21:58:10 (GMT) |
commit | ed7e2224542a595a8c1a5e9be92a467983329a28 (patch) | |
tree | a928cdba720874e3021aa64f9ade958c03c8a855 /Modules/pyexpat.c | |
parent | c99823211bfc349ae48ff00a9155472ccea0816d (diff) | |
download | cpython-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.c | 1 |
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; } |