mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
#3996: On Windows, PyOS_CheckStack is supposed to protect the interpreter from
stack overflow. But doing this, it always crashes when the stack is nearly full. Reviewed by Martin von Loewis. Will backport to 2.6.
This commit is contained in:
parent
98adb5ca65
commit
dc61901dd2
2 changed files with 5 additions and 1 deletions
|
@ -1755,7 +1755,7 @@ PyOS_CheckStack(void)
|
|||
EXCEPTION_EXECUTE_HANDLER :
|
||||
EXCEPTION_CONTINUE_SEARCH) {
|
||||
int errcode = _resetstkoflw();
|
||||
if (errcode)
|
||||
if (errcode == 0)
|
||||
{
|
||||
Py_FatalError("Could not reset the stack!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue