[issue17932] Win64: possible integer overflow in iterobject.c

2013-06-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 757a121a27c2 by Victor Stinner in branch 'default':
Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators:
http://hg.python.org/cpython/rev/757a121a27c2

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
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



[issue17932] Win64: possible integer overflow in iterobject.c

2013-06-04 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
stage: committed/rejected - 

___
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



[issue17932] Win64: possible integer overflow in iterobject.c

2013-06-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 52075f60719e by Victor Stinner in branch 'default':
Issuse #17932: Fix an integer overflow issue on Windows 64-bit in tuple
http://hg.python.org/cpython/rev/52075f60719e

--

___
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



[issue17932] Win64: possible integer overflow in iterobject.c

2013-05-08 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Create a class with a __getitem__ method but no __iter__:

class Seq (object):
def __len__(self):
return 5

def __getitem__(self, idx):
if idx  len(self):
raise IndexError(idx)
return idx * 2


i = iter(Seq())

--
nosy: +ronaldoussoren

___
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



[issue17932] Win64: possible integer overflow in iterobject.c

2013-05-07 Thread STINNER Victor

STINNER Victor added the comment:

I don't know how to create an iterator object. How can I do that?

--

___
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



[issue17932] Win64: possible integer overflow in iterobject.c

2013-05-07 Thread STINNER Victor

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