[issue23366] integer overflow in itertools.combinations

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

[issue23366] integer overflow in itertools.combinations

2015-02-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 2.7, Python 3.3, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23366 ___

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: lgtm -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23366 ___ ___ Python-bugs-list

[issue23366] integer overflow in itertools.combinations

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,

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23366 ___

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And with this patch an OverflowError in tests should be replaced with (OverflowError, MemoryError). Updated patch also fixes other bugs in itertools tests. -- resolution: fixed - stage: resolved - patch review Added file:

[issue23366] integer overflow in itertools.combinations

2015-02-01 Thread paul
New submission from paul: # Bug # --- # # static PyObject * # combinations_new(PyTypeObject *type, PyObject *args, PyObject *kwds) # { # ... # # 1 indices = PyMem_Malloc(r * sizeof(Py_ssize_t)); # ... # # for (i=0 ; ir ; i++) # 2 indices[i] = i; # # 1. if r=2^30, then

[issue23366] integer overflow in itertools.combinations

2015-02-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23366 ___

[issue23366] integer overflow in itertools.combinations

2015-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 014886dae5c4 by Benjamin Peterson in branch '3.3': detect overflow in combinations (closes #23366) https://hg.python.org/cpython/rev/014886dae5c4 New changeset 2f73de7ffcf5 by Benjamin Peterson in branch '3.4': merge 3.3 (#23366)

[issue23366] integer overflow in itertools.combinations

2015-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This commit (and three other) causes compiler warnings: ./Modules/itertoolsmodule.c: In function ‘product_new’: ./Modules/itertoolsmodule.c:2025:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (repeat