-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-126033: fix a crash in xml.etree.ElementTree.Element.remove
when concurrent mutations happen
#126124
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
gh-126033: fix a crash in xml.etree.ElementTree.Element.remove
when concurrent mutations happen
#126124
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
abc121c
Add versioning to XML elements.
picnixz 4efa517
fix tests
picnixz 4ca3cf0
fix portability issues
picnixz a1950d1
fixup
picnixz 9b6f559
unify versioning
picnixz 00a7a7e
handle evil mutations in `Element.remove`
picnixz 59ade8f
blurb
picnixz 7fc9932
improve NEWS entry formulation
picnixz e30756d
remove versioning
picnixz f2b5bb1
fix tests
picnixz 9f73517
improve detection and tests
picnixz 70f2aad
revert whitespaces
picnixz 756b1eb
amend NEWS
picnixz 4b74caf
improve test coverage
picnixz fd29203
align C implementation with Python implementation as much as possible
picnixz e7033b6
fix tests and improve coverage
picnixz 4d3cdd7
fix tests (i'll explain afterwards)
picnixz 883e8d2
improve comments
picnixz 220b669
change root name to avoid special wildcards
picnixz 7f26430
avoid strong reference on the child to remove
picnixz e8d84c8
address Serhiy's review
picnixz 3a43c0f
Merge branch 'main' into fix/xml-evil-remove-126033
picnixz bc52c04
Update Misc/NEWS.d/next/Library/2024-10-29-12-59-45.gh-issue-126033.s…
picnixz f4a4dae
remove un-necessary subtest parameter
picnixz 09a9fa9
Reduce the visual size of the tests
picnixz f5d352f
fixup docs
picnixz 2b47468
Merge branch 'main' into fix/xml-evil-remove-126033
picnixz dc576ab
Merge branch 'main' into fix/xml-evil-remove-126033
picnixz ce66ac7
Merge branch 'main' into fix/xml-evil-remove-126033
picnixz 04cb600
do not pedantically test the pure Python implementation
picnixz a0c2324
Merge branch 'main' into fix/xml-evil-remove-126033
picnixz 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
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
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Library/2024-10-29-12-59-45.gh-issue-126033.sM3uCn.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:mod:`xml.etree.ElementTree`: Fix a crash in :meth:`Element.remove | ||
<xml.etree.ElementTree.Element.remove>` when the element is | ||
concurrently mutated. Patch by Bénédikt Tran. |
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.