New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-41085: Fixed 'array.array.index' downcasting 'Py_ssize_t' to 'long'. #21071
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a NEWS entry: either run blurb tool locally, or use https://blurb-it.herokuapp.com/ service.
I suggest to write a more high-level description for end users, like: "Fix integer overflow in the array.array.index() method on 64-bit Windows for index larger than 2**31." |
@@ -0,0 +1 @@ | |||
Fixed 'array_array_index' downcasting 'Py_ssize_t' to 'long' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(copy/paste of my comment :-))
I suggest to write a more high-level description for end users, like:
"Fix integer overflow in the array.array.index() method on 64-bit Windows for index larger than 2**31."
@vstinner There, I made the changes you requested. |
Misc/NEWS.d/next/Tests/2020-06-23-12-02-45.bpo-41085.JZKsyz.rst
Outdated
Show resolved
Hide resolved
This pull request may need backporting to older Python versions (Found the issue goes as far back as Python 2.7) |
Thanks @WildCard65 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Thanks @WildCard65 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows for index larger than ``2**31``. (cherry picked from commit 1d3dad5) Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com>
GH-21076 is a backport of this pull request to the 3.9 branch. |
Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows for index larger than ``2**31``. (cherry picked from commit 1d3dad5) Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com>
GH-21077 is a backport of this pull request to the 3.8 branch. |
Thanks @WildCard65, I merged your PR!
Right. I created backports to 3.8 and 3.9 branches. I don't think that it's worth it to backport it to 3.7 which is very close to move to security-only. Python 2.7 is no longer maintained. |
Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows for index larger than ``2**31``.
Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows for index larger than ``2**31``.
Fix integer overflow in the array.array.index() method on 64-bit Windows for index larger than 2**31.
https://bugs.python.org/issue41085