Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-126033: fix a crash inxml.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
picnixz merged 31 commits intopython:mainfrompicnixz:fix/xml-evil-remove-126033
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
31 commits
Select commitHold shift + click to select a range
abc121c
Add versioning to XML elements.
picnixzOct 27, 2024
4efa517
fix tests
picnixzOct 27, 2024
4ca3cf0
fix portability issues
picnixzOct 27, 2024
a1950d1
fixup
picnixzOct 28, 2024
9b6f559
unify versioning
picnixzOct 29, 2024
00a7a7e
handle evil mutations in `Element.remove`
picnixzOct 29, 2024
59ade8f
blurb
picnixzOct 29, 2024
7fc9932
improve NEWS entry formulation
picnixzDec 6, 2024
e30756d
remove versioning
picnixzDec 8, 2024
f2b5bb1
fix tests
picnixzDec 8, 2024
9f73517
improve detection and tests
picnixzDec 15, 2024
70f2aad
revert whitespaces
picnixzDec 15, 2024
756b1eb
amend NEWS
picnixzDec 17, 2024
4b74caf
improve test coverage
picnixzDec 17, 2024
fd29203
align C implementation with Python implementation as much as possible
picnixzDec 17, 2024
e7033b6
fix tests and improve coverage
picnixzDec 17, 2024
4d3cdd7
fix tests (i'll explain afterwards)
picnixzDec 17, 2024
883e8d2
improve comments
picnixzDec 17, 2024
220b669
change root name to avoid special wildcards
picnixzDec 19, 2024
7f26430
avoid strong reference on the child to remove
picnixzDec 19, 2024
e8d84c8
address Serhiy's review
picnixzDec 19, 2024
3a43c0f
Merge branch 'main' into fix/xml-evil-remove-126033
picnixzJan 19, 2025
bc52c04
Update Misc/NEWS.d/next/Library/2024-10-29-12-59-45.gh-issue-126033.s…
picnixzFeb 4, 2025
f4a4dae
remove un-necessary subtest parameter
picnixzFeb 8, 2025
09a9fa9
Reduce the visual size of the tests
picnixzFeb 8, 2025
f5d352f
fixup docs
picnixzFeb 8, 2025
2b47468
Merge branch 'main' into fix/xml-evil-remove-126033
picnixzFeb 8, 2025
dc576ab
Merge branch 'main' into fix/xml-evil-remove-126033
picnixzFeb 22, 2025
ce66ac7
Merge branch 'main' into fix/xml-evil-remove-126033
picnixzMar 14, 2025
04cb600
do not pedantically test the pure Python implementation
picnixzMar 15, 2025
a0c2324
Merge branch 'main' into fix/xml-evil-remove-126033
picnixzMar 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix portability issues
  • Loading branch information
@picnixz
picnixz committedOct 27, 2024
commit4ca3cf04a5c56599c39f7b8caabdc3188d914fe4
2 changes: 1 addition & 1 deletionLib/test/test_xml_etree_c.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -234,7 +234,7 @@ class SizeofTest(unittest.TestCase):
def setUp(self):
self.elementsize = support.calcobjsize('5P')
# extra
self.extra = struct.calcsize('PnnP4Pnn')
self.extra = struct.calcsize('PnnP4PNN')

check_sizeof = support.check_sizeof

Expand Down
4 changes: 2 additions & 2 deletionsModules/_elementtree.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -231,9 +231,9 @@ typedef struct {
PyObject* _children[STATIC_CHILDREN];

/* incremented whenever 'attrib' is externally mutated */
uint64_t attrib_version;
size_t attrib_version;
/* incremented whenever children are externally mutated */
uint64_t version;
size_t version;
} ElementObjectExtra;

typedef struct {
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp