Skip to content

Incorrect Py_XDECREFs in property #115618

Closed
Closed
@serhiy-storchaka

Description

@serhiy-storchaka

Crash report

When property methods getter(), setter() or deleter() are called with None as argument, they call Py_XDECREF() on it. Now, when None is immortal, it perhaps have no effect, but in earlier Python versions it could have bad consequences. It was not reported earlier only because nobody normally calls them with None.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixestype-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