diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-03-12 09:52:44 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-03-15 00:53:33 +0900 |
commit | 0210c77311ae59a7959f413c8ca9d1fc624ef373 (patch) | |
tree | db37b18d08939e3d48d2e9e0feff0a412dec32b7 /newlib/libc/stdlib/arc4random.c | |
parent | 9b02451f6e4ad1feddb998e136ac7108bda6c948 (diff) | |
download | newlib-0210c77311ae59a7959f413c8ca9d1fc624ef373.zip newlib-0210c77311ae59a7959f413c8ca9d1fc624ef373.tar.gz newlib-0210c77311ae59a7959f413c8ca9d1fc624ef373.tar.bz2 |
Cygwin: signal: Use context locally copied in call_signal_handler()
If the signal handler is called from inside of another signal handler,
_cygtls::context may be destroyed by call_signal_handler() newly called.
To avoid this situation, this patch used context locally copied in
call_signal_handler().
Addresses: https://cygwin.com/pipermail/cygwin-patches/2025q1/013483.html
Fixes: 9043956ce859 ("Only construct ucontext for SA_SIGINFO signal handlers")
Reported-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'newlib/libc/stdlib/arc4random.c')
0 files changed, 0 insertions, 0 deletions