]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43390: Set SA_ONSTACK in PyOS_setsig (GH-24730)
authorGregory P. Smith <greg@krypto.org>
Fri, 5 Mar 2021 05:49:30 +0000 (21:49 -0800)
committerGitHub <noreply@github.com>
Fri, 5 Mar 2021 05:49:30 +0000 (21:49 -0800)
commit02ac6f41e5569ec28d625bb005155903f64cc9ee
tree378d6d4792a64ea7cd5e106294449654cb73241d
parent2122e486307d5577cb5fb5e7cfd24095695bc7e9
bpo-43390: Set SA_ONSTACK in PyOS_setsig (GH-24730)

This is friendlier to other in-process code that an extension module or
embedding use could pull in such as CGo where tiny stacks are the norm
and sigaltstack() has been used to provide for signal handlers.

Without this, signals received by a process using tiny stacks may lead
to stack overflow crashes.
Misc/NEWS.d/next/Core and Builtins/2021-03-03-17-58-49.bpo-43390.epPpwV.rst [new file with mode: 0644]
Python/pylifecycle.c