-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
gh-142557: fix UAF in bytearray.__mod__ when object is mutated while formatting %-style arguments
#143213
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
Conversation
…nt's `__repr__`
Misc/NEWS.d/next/Core_and_Builtins/2025-12-27-12-25-06.gh-issue-142557.KWOc8b.rst
Outdated
Show resolved
Hide resolved
…e-142557.KWOc8b.rst
Misc/NEWS.d/next/Core_and_Builtins/2025-12-27-12-25-06.gh-issue-142557.KWOc8b.rst
Outdated
Show resolved
Hide resolved
Misc/NEWS.d/next/Core_and_Builtins/2025-12-27-12-25-06.gh-issue-142557.KWOc8b.rst
Outdated
Show resolved
Hide resolved
serhiy-storchaka
left a comment
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. 👍
Don't forget to edit the commit message before merging.
bytearray.__mod__ via re-entrant argument's __repr__bytearray.__mod__ when object is mutated while formatting %-style arguments
|
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…d while formatting `%`-style arguments (pythonGH-143213) (cherry picked from commit 61ee04834b096be00678c6819b4957f3f4413a5e) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
Sorry, @picnixz, I could not cleanly backport this to |
|
GH-143227 is a backport of this pull request to the 3.14 branch. |
… mutated while formatting `%`-style arguments (pythonGH-143213) (cherry picked from commit 61ee048) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-143229 is a backport of this pull request to the 3.13 branch. |
bytearray_mod(bytes formatting) via re-entrant__repr__method #142557