Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

structseq.c: NULL dereference in get_type_attr_as_size #148119

Copy link
Copy link
@Wulian233

Description

@Wulian233
Issue body actions

Bug report

Bug description:

Parent: #146102

When PyDict_GetItemWithError returns NULL due to error (not missing key), code falls through to PyLong_AsSsize_t(NULL) at line 37 → segfault. Affects PyStructSequence_New, structseq_new_impl, etc.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.