mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Issue #9566: explain why (int)len cannot underflow
This commit is contained in:
parent
c99823211b
commit
ed7e222454
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user