Skip to content

list_slice() crashes if the list is mutated indirectly by PyList_New() #75348

Closed as not planned
@geeknik

Description

@geeknik
mannequin
BPO 31165
Nosy @malemburg, @tim-one, @Yhg1s, @pitrou, @vstinner, @serhiy-storchaka, @orenmn, @geeknik, @iritkatriel
PRs
  • bpo-31165: Detect mutated list in list_slice() #3911
  • [WIP] bpo-31165: Call PyList_New() again if the source container was resized due to GC. #3915
  • 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 = None
    created_at = <Date 2017-08-10.01:43:02.682>
    labels = ['interpreter-core', '3.10', '3.9', 'type-crash', '3.11']
    title = 'list_slice() crashes if the list is mutated indirectly by PyList_New()'
    updated_at = <Date 2021-10-18.23:16:49.622>
    user = 'https://github.com/geeknik'

    bugs.python.org fields:

    activity = <Date 2021-10-18.23:16:49.622>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2017-08-10.01:43:02.682>
    creator = 'geeknik'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31165
    keywords = ['patch']
    message_count = 13.0
    messages = ['300033', '303811', '303813', '303830', '303849', '303850', '303856', '303857', '303861', '303881', '303882', '303890', '404244']
    nosy_count = 9.0
    nosy_names = ['lemburg', 'tim.peters', 'twouters', 'pitrou', 'vstinner', 'serhiy.storchaka', 'Oren Milman', 'geeknik', 'iritkatriel']
    pr_nums = ['3911', '3915']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue31165'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-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