commit | ed7e2224542a595a8c1a5e9be92a467983329a28 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Jan 04 21:58:10 2011 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Jan 04 21:58:10 2011 +0000 |
tree | a928cdba720874e3021aa64f9ade958c03c8a855 | |
parent | c99823211bfc349ae48ff00a9155472ccea0816d [diff] |
Issue #9566: explain why (int)len cannot underflow
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 @@ finally: Py_XDECREF(arg); Py_XDECREF(str); + /* len <= buf_size <= INT_MAX (see above) */ return (int)len; }