Repository navigation
gh-144475: Fix a heap buffer overflow in partial_repr #145362
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7a5456c
gh-144475: Fix a heap buffer overflow in partial_repr (v2)
brijkapadia 7b4955f
small changes
brijkapadia 543d44c
Update test_functools.py
brijkapadia 74b98ca
move declaration
brijkapadia ef0ffb3
Reword NEWS & move to Library
encukou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
small changes
- Loading branch information
commit 7b4955f495962b318dc3e603a495f88a864e0034
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
Misc/NEWS.d/next/C_API/2026-02-07-16-37-42.gh-issue-144475.8tFEXw.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| Fixed a bug in :func:`functools.partial` when calling :func:`repr` on a partial | ||
| object that could occur when the ``fn``, ``args``, or ``kw`` arguments are modified | ||
| during a call to :func:`repr`. Now, calls to :func:`repr` will use the original | ||
| arguments when generating the string representation of the partial object. | ||
| Subsequent calls will use the updated arguments instead. | ||
|
|
||
| Calling :func:`repr` on :func:`functools.partial` will no longer | ||
| use a mutated version of the arguments ``fn``, ``args``, or ``kw`` | ||
| when generating the string representation of the partial object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.