]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 4 Sep 2021 20:39:47 +0000 (13:39 -0700)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 20:39:47 +0000 (13:39 -0700)
commitfecd17fbcb68138c6535130dfca2173472d669cd
tree13a6152fce5bf4a193edf2f894225853f5d6c968
parentc967bd523caabb05bf5988449487d7c1717f3ac6
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)

It happened with fast range iterator  when the calculated stop = start + step * len
was out of the C long range.
(cherry picked from commit 936f6a16b9ef85bd56b18a247b962801e954c30e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_range.py
Misc/NEWS.d/next/Library/2021-08-27-19-01-23.bpo-45030.tAmBbY.rst [new file with mode: 0644]
Objects/rangeobject.c