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
gh-112625: Protect bytearray from being freed by misbehaving iterator inside bytearray.join #112626
gh-112625: Protect bytearray from being freed by misbehaving iterator inside bytearray.join #112626
Conversation
chilaxan
commented
Dec 2, 2023
•
edited by bedevere-app
bot
edited by bedevere-app
bot
- Issue: stringlib bytearray.join function has the potential to leak memory when used with a custom iterator #112625
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.
LGTM.
Would you mind to add a NEWS entry? You can use blurb-it for this. |
Misc/NEWS.d/next/Core and Builtins/2023-12-03-19-34-51.gh-issue-112625.QWTlwS.rst
Outdated
Show resolved
Hide resolved
…e-112625.QWTlwS.rst
Thanks @chilaxan for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-112693 is a backport of this pull request to the 3.12 branch. |
…erator inside bytearray.join (pythonGH-112626) (cherry picked from commit 0e732d0) Co-authored-by: chilaxan <chilaxan@gmail.com>
…erator inside bytearray.join (pythonGH-112626) (cherry picked from commit 0e732d0) Co-authored-by: chilaxan <chilaxan@gmail.com>
GH-112694 is a backport of this pull request to the 3.11 branch. |
…erator inside bytearray.join (pythonGH-112626)