New submission from STINNER Victor: seqiterobject.it_index type is long, whereas iter_setstate() uses a Py_ssize_t. It would be safer to use Py_ssize_t type for seqiterobject.it_index.
The issue emits a compiler warning on Windows 64-bit. iterator.__getstate__() was introduced in Python 3.3, so older versions are not affected. ---------- files: iter_ssize_t.patch keywords: patch messages: 188691 nosy: haypo priority: normal severity: normal status: open title: Win64: possible integer overflow in iterobject.c versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30171/iter_ssize_t.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17932> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com