Skip to content

Commit e0b99ba

Browse files
committed
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.
1 parent 0b81111 commit e0b99ba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #17932: Fix an integer overflow issue on Windows 64-bit in iterators:
14+
change the C type of seqiterobject.it_index from long to Py_ssize_t.
15+
1316
- Issue #18065: Don't set __path__ to the package name for frozen packages.
1417

1518
- Issue #18088: When reloading a module, unconditionally reset all relevant

Objects/iterobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
typedef struct {
66
PyObject_HEAD
7-
long it_index;
7+
Py_ssize_t it_index;
88
PyObject *it_seq; /* Set to NULL when iterator is exhausted */
99
} seqiterobject;
1010

0 commit comments

Comments
 (0)