Re: [SECURITY] Async-signal-unsafe operations in alrm_catcher() signal handler

Paul Eggert <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-08-27 16:22, [email protected] wrote:
>     printf (_("\007timed out waiting for input: auto-logout\n"));
>     fflush (stdout);

Thanks for the bug report. I see that the current Git version has evolved a bit, in that it now calls 'write' (which is async-signal-safe) rather than printf and fflush. However, it still calls gettext (which is not async-signal-safe) and it calls jump_to_top_level (which is even less so), so there's still a couple of bugs here.

Agreed that a flag-based approach is the way to go, though I expect your patch won't be quite enough.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.