Skip to content

various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object #75939

@orenmn

Description

@orenmn
mannequin
BPO 31758
Nosy @scoder, @serhiy-storchaka, @orenmn, @miss-islington
PRs
  • bpo-31758: Prevent reference leaks in __setstate__() and __init__() of _elementtree.Element #3956
  • bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object #3997
  • [3.8] bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) #19485
  • [3.7] bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) #19486
  • [3.7] bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) #19487
  • 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:

    assignee = None
    closed_at = <Date 2020-04-12.17:16:54.394>
    created_at = <Date 2017-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 = <Date 2020-04-12.17:16:54.393>
    user = 'https://github.com/orenmn'

    bugs.python.org fields:

    activity = <Date 2020-04-12.17:16:54.393>
    actor = 'scoder'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-04-12.17:16:54.394>
    closer = 'scoder'
    components = ['XML']
    creation = <Date 2017-10-11.14:53:39.948>
    creator = 'Oren Milman'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31758
    keywords = ['patch']
    message_count = 9.0
    messages = ['304145', '304322', '304396', '366248', '366252', '366253', '366254', '366255', '366256']
    nosy_count = 5.0
    nosy_names = ['scoder', 'eli.bendersky', 'serhiy.storchaka', 'Oren Milman', 'miss-islington']
    pr_nums = ['3956', '3997', '19485', '19486', '19487']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue31758'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions