[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unsafe signal handler
From: |
Tim Waugh |
Subject: |
unsafe signal handler |
Date: |
Mon, 18 Jul 2005 14:06:28 +0100 |
User-agent: |
Mutt/1.4.2.1i |
The signal handler termination_unwind_protect() can call
maybe_save_shell_history() -> append_history() -> history_do_write()
-> history_filename() -> xmalloc() -> malloc()
and malloc() is not safe to call from a signal handler. This affects
bash-2.05b as well as bash-3.0.
Tim.
*/ ref 163235
pgpskxCZvmwxh.pgp
Description: PGP signature
- unsafe signal handler,
Tim Waugh <=