8000 GH-91079: Decouple C stack overflow checks from Python recursion checks. by markshannon · Pull Request #96507 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-91079: Decouple C stack overflow checks from Python recursion checks. #96507

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

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
Fix formatting of error message.
  • Loading branch information
markshannon committed Sep 2, 2022
commit a28071f724596712570469f7e5a872887c320866
2 changes: 1 addition & 1 deletion Python/ceval.c
75F9
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ _Py_CheckRecursiveCallN(PyThreadState *tstate, int n, const char *where)
if (tstate->c_recursion_remaining < n) {
tstate->c_recursion_remaining += n;
_PyErr_Format(tstate, PyExc_RecursionError,
"C stack overflow %s",
"C stack overflow%s",
where);
tstate->c_recursion_remaining -= n;
return -1;
Expand Down
0