This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Integer overflow in __reduce__ of the range iterator
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: miss-islington, rhettinger, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2021-08-27 14:47 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28000 merged serhiy.storchaka, 2021-08-27 16:05
PR 28160 merged miss-islington, 2021-09-04 18:02
PR 28161 merged miss-islington, 2021-09-04 18:02
Messages (4)
msg400428 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-08-27 14:47
>>> it = iter(range(2**63-10, 2**63-1, 10))
>>> it.__reduce__()
(<built-in function iter>, (range(9223372036854775798, -9223372036854775808, 10),), 0)
>>> import pickle
>>> it2 = pickle.loads(pickle.dumps(it))
>>> list(it)
[9223372036854775798]
>>> list(it2)
[]
msg401051 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-09-04 18:02
New changeset 936f6a16b9ef85bd56b18a247b962801e954c30e by Serhiy Storchaka in branch 'main':
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
https://github.com/python/cpython/commit/936f6a16b9ef85bd56b18a247b962801e954c30e
msg401058 - (view) Author: miss-islington (miss-islington) Date: 2021-09-04 20:39
New changeset ed9f927527e100b6d1d5758fdd9fc20b313af226 by Miss Islington (bot) in branch '3.10':
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
https://github.com/python/cpython/commit/ed9f927527e100b6d1d5758fdd9fc20b313af226
msg401059 - (view) Author: miss-islington (miss-islington) Date: 2021-09-04 20:39
New changeset fecd17fbcb68138c6535130dfca2173472d669cd by Miss Islington (bot) in branch '3.9':
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
https://github.com/python/cpython/commit/fecd17fbcb68138c6535130dfca2173472d669cd
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89193
2021-09-04 20:40:18serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-09-04 20:39:51miss-islingtonsetmessages: + msg401059
2021-09-04 20:39:37miss-islingtonsetmessages: + msg401058
2021-09-04 18:02:33serhiy.storchakasetmessages: + msg401051
2021-09-04 18:02:33miss-islingtonsetpull_requests: + pull_request26593
2021-09-04 18:02:28miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26592
2021-08-27 16:05:22serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request26443
2021-08-27 14:47:07serhiy.storchakacreate