[Top][All Lists]

[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/

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.

*/ ref 163235

Attachment: pgpJgb5EifKBC.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]