diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-11-22 20:01:18 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-11-22 20:01:18 (GMT) |
commit | dc61901dd2b1bcb5467ebc36ef35a51106d9b103 (patch) | |
tree | cdbc71af947b60d1a9d77243a881b6ff96fa445b /Python | |
parent | 98adb5ca65624782918556a51c53fe9fbaf158a0 (diff) | |
download | cpython-dc61901dd2b1bcb5467ebc36ef35a51106d9b103.zip cpython-dc61901dd2b1bcb5467ebc36ef35a51106d9b103.tar.gz cpython-dc61901dd2b1bcb5467ebc36ef35a51106d9b103.tar.bz2 |
#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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 4ff70d8..54f3c57 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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!"); } |