-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Missing error checks in _PyEval_MatchClass
#110237
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
Labels
3.11
only security fixes
3.12
only security fixes
3.13
bugs and security fixes
easy
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
Comments
JelleZijlstra
pushed a commit
that referenced
this issue
Oct 8, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 8, 2023
…ass` (pythonGH-110238) (cherry picked from commit dd9d781) Co-authored-by: denballakh <[email protected]>
This was referenced Oct 8, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 8, 2023
…ass` (pythonGH-110238) (cherry picked from commit dd9d781) Co-authored-by: denballakh <[email protected]>
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
3.12
only security fixes
3.13
bugs and security fixes
easy
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
Several places in
_PyEval_MatchClass
callPyList_Append
without checking the return value (e.g., https://github.com/python/cpython/blob/fc2cb86d210555d509debaeefd370d5331cd9d93/Python/ceval.c#L509C13-L509C26). However,PyList_Append
can fail. It will only fail if we're out of memory or if we passed a non-list, so it's unlikely to come up in practice, but we should still check for errors.cc @brandtbucher for pattern matching
Linked PRs
PyList_Append
for errors in_PyEval_MatchClass
#110238PyList_Append
for errors in_PyEval_MatchClass
(GH-110238) #110511PyList_Append
for errors in_PyEval_MatchClass
(GH-110238) #110512The text was updated successfully, but these errors were encountered: