-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
stringlib bytearray.join function has the potential to leak memory when used with a custom iterator #112625
Comments
chilaxan
added a commit
to chilaxan/cpython
that referenced
this issue
Dec 2, 2023
serhiy-storchaka
pushed a commit
that referenced
this issue
Dec 4, 2023
… inside bytearray.join (GH-112626)
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Dec 4, 2023
…erator inside bytearray.join (pythonGH-112626) (cherry picked from commit 0e732d0) Co-authored-by: chilaxan <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Dec 4, 2023
…erator inside bytearray.join (pythonGH-112626) (cherry picked from commit 0e732d0) Co-authored-by: chilaxan <[email protected]>
serhiy-storchaka
pushed a commit
that referenced
this issue
Dec 4, 2023
…terator inside bytearray.join (GH-112626) (GH-112694) (cherry picked from commit 0e732d0) Co-authored-by: chilaxan <[email protected]>
Thank you for your report and your PR @chilaxan. |
serhiy-storchaka
added
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Dec 4, 2023
serhiy-storchaka
pushed a commit
that referenced
this issue
Dec 4, 2023
…terator inside bytearray.join (GH-112626) (GH-112693) (cherry picked from commit 0e732d0) Co-authored-by: chilaxan <[email protected]>
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…erator inside bytearray.join (pythonGH-112626)
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…erator inside bytearray.join (pythonGH-112626)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
If a custom iterator is passed into
bytearray.join
, and then it frees the bytearray inside of its__iter__
, then memory can be read after it is freed:CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: