-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
ceval.c: positional_only_passed_as_keyword
can be failed with segfault
#101967
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
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-crash
A hard crash of the interpreter, possibly with a core dump
Comments
Eclips4
added a commit
to Eclips4/cpython
that referenced
this issue
Feb 16, 2023
Eclips4
added a commit
to Eclips4/cpython
that referenced
this issue
Feb 16, 2023
iritkatriel
pushed a commit
that referenced
this issue
Feb 18, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 18, 2023
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 18, 2023
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]>
miss-islington
added a commit
that referenced
this issue
Feb 18, 2023
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]>
pablogsal
pushed a commit
that referenced
this issue
Feb 21, 2023
gh-101967: add a missing error check (GH-101968) (cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]> Co-authored-by: Shantanu <[email protected]>
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-crash
A hard crash of the interpreter, possibly with a core dump
cpython/Python/ceval.c
Lines 1251 to 1285 in 4d8959b
This implemention doesn't take in account case when
PyList_New
returnsNULL
.If
PyList_New(0)
returns aNULL
,PyList_Append
will be failed with segfault, cause ofPy_TYPE
, which will try to reach outob_type
. of(PyObject *) NULL
.This hard to reproduce, because the only way
PyList_New
can error, if it is runs out of memory, but theoretically it can happen.Linked PRs
The text was updated successfully, but these errors were encountered: