]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 4 Sep 2021 18:02:21 +0000 (21:02 +0300)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 18:02:21 +0000 (21:02 +0300)
commit936f6a16b9ef85bd56b18a247b962801e954c30e
treeb28e59c8374f6a8ed06de4bf091a26628feac1bb
parentc2970fdec52788b6d9ff419ab7e31f255d87433d
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.
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