diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 22:01:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 22:01:38 -0700 |
commit | 817cd5991d6304a2368824acbfc0b0e95c2aa7a7 (patch) | |
tree | 4aa5e7b112cdf41d2a713e42562f9699c8839dd3 /HACKING-toc.txr | |
parent | 1c1685861e0d304f60f0669c6dbd5005349262e4 (diff) | |
download | txr-817cd5991d6304a2368824acbfc0b0e95c2aa7a7.tar.gz txr-817cd5991d6304a2368824acbfc0b0e95c2aa7a7.tar.bz2 txr-817cd5991d6304a2368824acbfc0b0e95c2aa7a7.zip |
signals: disable stack overflow in handler.
* signal.c (sig_handler): For a is_cpu_exception signal, we
temporarily disable the stack limit. It might be executing on
the sigaltstack buffer, which is almost certainly below the
stack limit.
* tests/012/stack.tl: New test case. We raise a SIGSEGV
and check that in the handler, the stack limit is disabled,
and that we can executed code.
Diffstat (limited to 'HACKING-toc.txr')
0 files changed, 0 insertions, 0 deletions