You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
assignee=Noneclosed_at=<Date2020-04-12.17:16:54.394>created_at=<Date2017-10-11.14:53:39.948>labels= ['expert-XML', '3.7', '3.8', '3.9', 'type-crash']
title='various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object'updated_at=<Date2020-04-12.17:16:54.393>user='https://github.com/orenmn'
The following code crashes:
parser = _elementtree.XMLParser.__new__(_elementtree.XMLParser)
This is because _elementtree_XMLParser_close_impl() assumes that the XMLParser
object is initialized, and so it passes self to expat_parse(), which assumes
that self->parser is valid, and crashes.
Similarly, calling feed(), _parse_whole() or _setevents(), or reading the entity or target attribute of an uninitialized XMLParser object would
result in a crash.
ISTM that PR 3956 is more complex, and already not so small, so i would soon
open another PR to fix these crashes.