mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Avoid crashes due to invalid error forms from sentinels/filters
* src/process.c (exec_sentinel_error_handler): Make sure the error form passed to cmd_error_internal is a cons cell. (Bug#28430)
This commit is contained in:
parent
015172d1ba
commit
817e92b2bd
1 changed files with 4 additions and 0 deletions
|
|
@ -7102,6 +7102,10 @@ deliver_child_signal (int sig)
|
|||
static Lisp_Object
|
||||
exec_sentinel_error_handler (Lisp_Object error_val)
|
||||
{
|
||||
/* Make sure error_val is a cons cell, as all the rest of error
|
||||
handling expects that, and will barf otherwise. */
|
||||
if (!CONSP (error_val))
|
||||
error_val = Fcons (Qerror, error_val);
|
||||
cmd_error_internal (error_val, "error in process sentinel: ");
|
||||
Vinhibit_quit = Qt;
|
||||
update_echo_area ();
|
||||
|
|
|
|||
Loading…
Reference in a new issue