You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Bug report
Bug description:
Parent: #146102
When
PyDict_GetItemWithErrorreturns NULL due to error (not missing key), code falls through toPyLong_AsSsize_t(NULL)at line 37 → segfault. AffectsPyStructSequence_New,structseq_new_impl, etc.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
get_type_attr_as_sizeto improve error handling instructseq.c#148120