-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ga_getitem
can fail if Py_GenericAlias
returns NULL
#121660
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Comments
sobolevn
added
type-bug
An unexpected behavior, bug, or error
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
labels
Jul 13, 2024
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Jul 13, 2024
sobolevn
added a commit
that referenced
this issue
Jul 14, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 14, 2024
…esult (pythonGH-121661) (cherry picked from commit bb802db) Co-authored-by: sobolevn <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 14, 2024
…esult (pythonGH-121661) (cherry picked from commit bb802db) Co-authored-by: sobolevn <[email protected]>
This was referenced Jul 14, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
This code is problematic:
cpython/Objects/genericaliasobject.c
Lines 565 to 569 in dc03ce7
Why?
Py_GenericAlias
can returnNULL
in different cases:cpython/Objects/genericaliasobject.c
Lines 995 to 999 in dc03ce7
So, we need to check for
NULL
.Linked PRs
ga_getitem
by explicitly checking forNULL
result #121661ga_getitem
by explicitly checking forNULL
result (GH-121661) #121761ga_getitem
by explicitly checking forNULL
result (GH-121661) #121762The text was updated successfully, but these errors were encountered: