Skip to content

a SystemError and a crash in PyCData_setstate() when __dict__ is bad #75492

@orenmn

Description

@orenmn
mannequin
BPO 31311
Nosy @serhiy-storchaka, @orenmn
PRs
  • bpo-31311: fix a SystemError and a crash in PyCData_setstate(), in case of a bad __dict__ #3254
  • bpo-31311: raise a TypeError in case the first argument to PyCData_setstate() isn't a dictionary #3255
  • [3.6] bpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case of a bad __dict__. (GH-3254) #3743
  • [2.7] bpo-31311: Fix a SystemError and a crash in ctypes._CData.__set… #3781
  • 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 2017-09-27.06:40:21.439>
    created_at = <Date 2017-08-30.19:29:41.381>
    labels = ['ctypes', '3.7', 'type-crash']
    title = 'a SystemError and a crash in PyCData_setstate() when __dict__ is bad'
    updated_at = <Date 2017-09-27.06:40:21.407>
    user = 'https://github.com/orenmn'

    bugs.python.org fields:

    activity = <Date 2017-09-27.06:40:21.407>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-27.06:40:21.439>
    closer = 'serhiy.storchaka'
    components = ['ctypes']
    creation = <Date 2017-08-30.19:29:41.381>
    creator = 'Oren Milman'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31311
    keywords = ['patch']
    message_count = 10.0
    messages = ['301034', '301035', '301036', '301807', '302840', '302841', '302914', '302919', '302928', '303099']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'Oren Milman']
    pr_nums = ['3254', '3255', '3743', '3781']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue31311'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifetopic-ctypestype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions