From ed7e2224542a595a8c1a5e9be92a467983329a28 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 4 Jan 2011 21:58:10 +0000 Subject: Issue #9566: explain why (int)len cannot underflow --- Modules/pyexpat.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v0.12