Skip to content

crashes in pysqlite_build_row_cast_map() on memory allocation failure #78411

Closed

Description

@sir-sigurd
BPO 34230
Nosy @sir-sigurd
PRs
  • bpo-34230: Fix crashes in pysqlite_build_row_cast_map() on memory allocation failure. #8473
  • Superseder
  • bpo-32788: Better error handling in sqlite3
  • 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 2018-07-26.05:39:51.380>
    created_at = <Date 2018-07-26.05:33:24.055>
    labels = ['extension-modules', 'type-crash']
    title = 'crashes in pysqlite_build_row_cast_map() on memory allocation failure'
    updated_at = <Date 2018-07-26.05:42:11.484>
    user = 'https://github.com/sir-sigurd'

    bugs.python.org fields:

    activity = <Date 2018-07-26.05:42:11.484>
    actor = 'sir-sigurd'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-07-26.05:39:51.380>
    closer = 'serhiy.storchaka'
    components = ['Extension Modules']
    creation = <Date 2018-07-26.05:33:24.055>
    creator = 'sir-sigurd'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34230
    keywords = []
    message_count = 1.0
    messages = ['322396']
    nosy_count = 1.0
    nosy_names = ['sir-sigurd']
    pr_nums = ['8473']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '32788'
    type = 'crash'
    url = 'https://bugs.python.org/issue34230'
    versions = []

    Activity

    1. sir-sigurd commented on Jul 26, 2018

      sir-sigurdmannequin
      MannequinAuthor

      pysqlite_build_row_cast_map() can crash on memory allocation failure:

      1. it doesn't check that PyList_New() returns non-NULL
      2. Py_DECREF() borrowed reference when
    2. added
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Jul 26, 2018
    3. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      extension-modulesC modules in the Modules dirtype-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