GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — structseq.c: NULL dereference in get_type_attr_as_size · Issue #148119 · python/cpython

structseq.c: NULL dereference in get_type_attr_as_size #148119

New issue
Copy link
New issue
Copy link
Closed
Closed
structseq.c: NULL dereference in get_type_attr_as_size#148119
Copy link
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

Description

@Wulian233
Wulian233
opened on Apr 5, 2026
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

  • gh-148119: Refactor get_type_attr_as_size to improve error handling in structseq.c #148120

Activity

  1. Wulian233
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Apr 5, 2026
  2. Wulian233
    added a commit that references this issue on Apr 5, 2026

    pythongh-148119: Refactor `get_type_attr_as_size` to improve error ha…

    c08c7b1
  3. aisk
    added a parent issue on Apr 5, 2026
    • Umbrella issue: bugs found using cpython-review-toolkit #146102
  4. aisk
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Apr 5, 2026
  5. kumaraditya303
    added a commit that references this issue on Apr 6, 2026

    gh-148119: Refactor `get_type_attr_as_size` to improve error handling…

    69f5162
  6. kumaraditya303
    closed this as completedon Apr 6, 2026
  7. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-148119: Refactor `get_type_attr_as_size` to improve error ha…

    e579626
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

    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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.