-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-101765: Fix SystemError / segmentation fault in iter __reduce__ when internal access of builtins.__dict__ exhausts the iterator
#101769
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
24 commits
Select commit
Hold shift + click to select a range
f256afe
Fix undefined behavior in listiter_reduce from _PyEval_GetBuiltin sid…
ionite34 6b4faad
Update comment to not mention `__eq__`
ionite34 a6d6211
Fix undefined behavior in iter_reduce and calliter_reduce
ionite34 4ccf427
Update listiter_reduce_general comment
ionite34 c2c9cfb
Fix undefined behavior in bytearrayiter_reduce from _PyEval_GetBuilti…
ionite34 e2989d9
Fix undefined behavior in striter_reduce from _PyEval_GetBuiltin side…
ionite34 71960a8
Fix undefined behavior in tupleiter_reduce from _PyEval_GetBuiltin si…
ionite34 efa0540
Move iter call in unicodeiter_reduce before `it` pointer access due t…
ionite34 c5abb14
Add iter reduce tests for issue #101765
ionite34 45522c6
Remove C++ reference in comments
ionite34 4f5fc19
Remove C++ reference in comments
ionite34 049a8dd
Move builtin declarations inside if blocks
ionite34 ef4f955
Move _PyEval_GetBuiltin before gi checks, add gi NULL check in ga_ite…
ionite34 7d4afb0
Update iter reduce mutating tests for generic alias
ionite34 8e4418d
📜🤖 Added by blurb_it.
blurb-it[bot] d8ced8e
Fix backticks format for news
ionite34 178b8ea
Refactor iter reduce builtins mutation tests
ionite34 49ba8c3
Update iter mutating builtins test to include reversed iterator for l…
ionite34 93854e1
Add comment in unicodeiter_reduce for moving iter call before it poin…
ionite34 98ec3c6
Change test `__builtins__` to builtins import
ionite34 e661495
Change NEWS blurb phrasing
ionite34 19ab9c6
Update iter reduce mutating builtins test comments and simplify logic
ionite34 9b664c2
Update comments to better reflect issue
ionite34 c67b11a
Clarify test comments
ionite34 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
Refactor iter reduce builtins mutation tests
- Added some comments for dict del usages - Switched to `__builtin__` instead of conditional `__dict__` access - Use kwargs for improved readability
- Loading branch information
commit 178b8ea41bb045eed63d06674e2f337d4de97bef
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
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.