summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-04 20:39:30 (GMT)
committerGitHub <noreply@github.com>2021-09-04 20:39:30 (GMT)
commited9f927527e100b6d1d5758fdd9fc20b313af226 (patch)
treefe4952a3a61ae2ad1d905bba792bc1145d216f8a /Misc
parent2ad114ddffbeeef1d20f26571b85a66974295667 (diff)
downloadcpython-ed9f927527e100b6d1d5758fdd9fc20b313af226.zip
cpython-ed9f927527e100b6d1d5758fdd9fc20b313af226.tar.gz
cpython-ed9f927527e100b6d1d5758fdd9fc20b313af226.tar.bz2
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>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-27-19-01-23.bpo-45030.tAmBbY.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-27-19-01-23.bpo-45030.tAmBbY.rst b/Misc/NEWS.d/next/Library/2021-08-27-19-01-23.bpo-45030.tAmBbY.rst
new file mode 100644
index 0000000..dec8c88
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-27-19-01-23.bpo-45030.tAmBbY.rst
@@ -0,0 +1 @@
+Fix integer overflow in pickling and copying the range iterator.