]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] GH-139653: Only raise an exception (or fatal error) when the stack pointer...
authorPetr Viktorin <encukou@gmail.com>
Wed, 26 Nov 2025 11:54:56 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Wed, 26 Nov 2025 11:54:56 +0000 (12:54 +0100)
commit69021e9acf74a4a43325241d641b6d09ed55b699
treec624e7782efcb9db6db4d64995fff9fd4b6a77c9
parent20a677d75a95fa63be904f7ca4f8cb268aec95c1
[3.14] GH-139653: Only raise an exception (or fatal error) when the stack pointer is about to overflow the stack. (GH-141711) (GH-141944)

Only raises if the stack pointer is both below the limit *and* above the stack base.
This prevents false positives for user-space threads, as the stack pointer will be outside those bounds
if the stack has been swapped.

Cherry-picked from commit c25a070759952b13f97ecc37ca2991c2669aee47

Co-authored-by: Mark Shannon <mark@hotpy.org>
Include/internal/pycore_ceval.h
InternalDocs/stack_protection.md [new file with mode: 0644]
Misc/NEWS.d/next/Core_and_Builtins/2025-11-17-14-40-45.gh-issue-139653.LzOy1M.rst [new file with mode: 0644]
Python/ceval.c