-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-39903: Fix double decref in _elementtree.Element.__getstate__ #18850
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
bpo-39903: Fix double decref in _elementtree.Element.__getstate__ #18850
Conversation
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.
It looks like test_xml_etree_c
fails.
Modules/_elementtree.c
Outdated
return Py_BuildValue("{sOsNsNsOsO}", | ||
PICKLED_TAG, self->tag, | ||
PICKLED_CHILDREN, children, | ||
PICKLED_ATTRIB, self->extra->attrib, |
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.
I don't think using self->extra->attrib
is correct here. I think it should be attrib
.
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.
Indeed, I make an error when manually copied the part of #18735. Thank you.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
…thonGH-18850) (cherry picked from commit 88944a4) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-18874 is a backport of this pull request to the 3.8 branch. |
GH-18875 is a backport of this pull request to the 3.7 branch. |
…thonGH-18850) (cherry picked from commit 88944a4) Co-authored-by: Serhiy Storchaka <[email protected]>
…-18850) (cherry picked from commit 88944a4) Co-authored-by: Serhiy Storchaka <[email protected]>
…-18850) (cherry picked from commit 88944a4) Co-authored-by: Serhiy Storchaka <[email protected]>
https://bugs.python.org/issue39903