[issue27660] Replace size_t with Py_ssize_t as the type of local variable in list_resize

Xiang Zhang report at bugs.python.org
Tue Aug 2 02:36:30 EDT 2016


Xiang Zhang added the comment:

But if you use size_t, you are checking overflow against PY_SIZE_MAX, not PY_SSIZE_T_MAX.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27660>
_______________________________________


More information about the Python-bugs-list mailing list