[New-bugs-announce] [issue17932] Win64: possible integer overflow in iterobject.c

STINNER Victor report at bugs.python.org
Wed May 8 00:38:35 CEST 2013

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list