]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-139653: Only raise an exception (or fatal error) when the stack pointer is about...
authorMark Shannon <mark@hotpy.org>
Wed, 19 Nov 2025 10:16:24 +0000 (10:16 +0000)
committerGitHub <noreply@github.com>
Wed, 19 Nov 2025 10:16:24 +0000 (10:16 +0000)
commitc25a070759952b13f97ecc37ca2991c2669aee47
tree493d753a2e30a5e780afb6eeb9775ce73e2a538c
parent5d1f8f2d03881afd2b40c9557c1f6ba4e698e39a
GH-139653: Only raise an exception (or fatal error) when the stack pointer is about to overflow the stack. (GH-141711)

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.
Include/internal/pycore_ceval.h
InternalDocs/stack_protection.md
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