diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-04 21:58:10 +0000 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-04 21:58:10 +0000 |
| commit | 88dd00e3ed13e26dae7ffda4d2652f64616f3049 (patch) | |
| tree | ee39fbda68515f36ad70a8651a8d2921124ef1f9 | |
| parent | 1f5bd653cbec331e15ac6aaa8fd276058859795b (diff) | |
| download | cpython-88dd00e3ed13e26dae7ffda4d2652f64616f3049.tar.gz | |
Issue #9566: explain why (int)len cannot underflow
| -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 dea682d412..21ab0882ca 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; } |
