Skip to content

possible undefined behavior in _PyObject_FastCall_Prepend #75528

Closed

Description

@benjaminp
BPO 31347
Nosy @benjaminp
PRs
  • closes bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might be NULL #3329
  • 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-05.05:25:55.447>
    created_at = <Date 2017-09-04.23:32:36.261>
    labels = ['3.7']
    title = 'possible undefined behavior in _PyObject_FastCall_Prepend'
    updated_at = <Date 2017-09-05.05:25:55.446>
    user = 'https://github.com/benjaminp'

    bugs.python.org fields:

    activity = <Date 2017-09-05.05:25:55.446>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-05.05:25:55.447>
    closer = 'benjamin.peterson'
    components = []
    creation = <Date 2017-09-04.23:32:36.261>
    creator = 'benjamin.peterson'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31347
    keywords = []
    message_count = 2.0
    messages = ['301283', '301298']
    nosy_count = 1.0
    nosy_names = ['benjamin.peterson']
    pr_nums = ['3329']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue31347'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. benjaminp commented on Sep 4, 2017

      @benjaminp
      ContributorAuthor

      As seen by ubsan:
      ../cpython/Objects/call.c:858:9: runtime error: null pointer passed as argument 2, which is declared to never be null

    2. benjaminp commented on Sep 5, 2017

      @benjaminp
      ContributorAuthor

      New changeset a3070d5 by Benjamin Peterson in branch 'master':
      bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not be null (bpo-3329)
      a3070d5

    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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions