summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/pyexpat.c1
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;
}