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
crashes in _elementtree due to unsafe decrefs of Element.text and Element.tail #75909
Comments
The following code causes the interpreter to crash: This is because _elementtree_Element_clear_impl() decrefs self->text in an Similarly, the following code also causes the interpreter to crash: This is because element_text_setter() decrefs self->text in an unsafe manner. |
As serhiy pointed out in a comment in PR 3924, setting self->text or self->tail to elem = xml.etree.ElementTree.Element('elem') |
Thank you Oren! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: