From e0b99ba140f83551cdeecb2a4ca9817aedde7ff5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 4 Jun 2013 23:02:46 +0200 Subject: 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. --- Misc/NEWS | 3 +++ Objects/iterobject.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index deeec0a..d7ae7e1 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1? 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 #18088: When reloading a module, unconditionally reset all relevant diff --git a/Objects/iterobject.c b/Objects/iterobject.c index 9acd1b7..77ff810 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -4,7 +4,7 @@ typedef struct { PyObject_HEAD - long it_index; + Py_ssize_t it_index; PyObject *it_seq; /* Set to NULL when iterator is exhausted */ } seqiterobject; -- cgit v0.12