Skip to content

asserting that the tstate pointer is non-NULL using assert #122928

Closed as not planned
@Wulian233

Description

@Wulian233

Bug report

Bug description:

https://github.com/python/cpython/blob/main/Python/pystate.c#L3016

To prevent dangling pointer issues, adding a check for NULL ensures that invalid pointers are not dereferenced

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