]> 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:30 +0000 (13:39 -0700)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 20:39:30 +0000 (13:39 -0700)
commited9f927527e100b6d1d5758fdd9fc20b313af226
treefe4952a3a61ae2ad1d905bba792bc1145d216f8a
parent2ad114ddffbeeef1d20f26571b85a66974295667
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