[issue23363] integer overflow in itertools.permutations

2015-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Arfrever. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue23363] integer overflow in itertools.permutations

2015-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 887526ebb013 by Serhiy Storchaka in branch '2.7': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/887526ebb013 -- ___ Python tracker

[issue23363] integer overflow in itertools.permutations

2015-02-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The last fix should be applied also in 2.7 branch. -- resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 2.7, Python 3.3, Python 3.5 ___ Python tracker

[issue23363] integer overflow in itertools.permutations

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23363] integer overflow in itertools.permutations

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 356ed025dbae by Serhiy Storchaka in branch '3.3': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/356ed025dbae New changeset 98c720c3e061 by Serhiy Storchaka in branch '3.4': Issues #23363, #2

[issue23363] integer overflow in itertools.permutations

2015-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An overflow in n * sizeof(Py_ssize_t) is not possible because n is the length of already allocated array of pointers. +with self.assertRaises(OverflowError): +permutations("A", 2**30) The test needs 4GiB. May be use 2**29? +with

[issue23363] integer overflow in itertools.permutations

2015-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7133582b6769 by Benjamin Peterson in branch '3.3': check for overflows in permutations() and product() (closes #23363, closes #23364) https://hg.python.org/cpython/rev/7133582b6769 New changeset 9ae055c3db32 by Benjamin Peterson in branch '3.4': me

[issue23363] integer overflow in itertools.permutations

2015-02-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23363] integer overflow in itertools.permutations

2015-02-01 Thread paul
New submission from paul: # Bug # --- # # static PyObject * # permutations_new(PyTypeObject *type, PyObject *args, PyObject *kwds) # { # ... # 1 cycles = PyMem_Malloc(r * sizeof(Py_ssize_t)); # ... # for (i=0 ; i0, so we write well beyond the buffer's end # # Crash # - # # Br