Commit e0b99ba1 authored by Victor Stinner's avatar Victor Stinner

Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators:

change the C type of seqiterobject.it_index from long to Py_ssize_t.
parent 0b81111b
...@@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1? ...@@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1?
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #17932: Fix an integer overflow issue on Windows 64-bit in iterators:
change the C type of seqiterobject.it_index from long to Py_ssize_t.
- Issue #18065: Don't set __path__ to the package name for frozen packages. - Issue #18065: Don't set __path__ to the package name for frozen packages.
- Issue #18088: When reloading a module, unconditionally reset all relevant - Issue #18088: When reloading a module, unconditionally reset all relevant
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
typedef struct { typedef struct {
PyObject_HEAD PyObject_HEAD
long it_index; Py_ssize_t it_index;
PyObject *it_seq; /* Set to NULL when iterator is exhausted */ PyObject *it_seq; /* Set to NULL when iterator is exhausted */
} seqiterobject; } seqiterobject;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment