Skip to content

Fix extra NULL arguments passed to PyObject_CallFunction #142606

@hyongtao-code

Description

@hyongtao-code

Bug report

Bug description:

Description

Some internal C calls to PyObject_CallFunction() are passing an extra NULL
argument that is not described by the format string. This is a misuse of the
API and can be undefined behavior if the implementation of PyObject_CallFunction
changes in the future.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions