[issue22939] integer overflow in iterator object
STINNER Victor
report at bugs.python.org
Tue Nov 25 15:23:33 CET 2014
STINNER Victor added the comment:
> The `it_index` attribute used by the iterator is a `Py_ssize_t` but overflow is never checked.
Yes it is a bug. iter_iternext() must raises an OverflowError if it->it_index is equal to PY_SSIZE_T_MAX.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22939>
_______________________________________
More information about the Python-bugs-list
mailing list