]> git.eshelyaron.com Git - emacs.git/commit
Fix crash when evaluating "(signal nil 5)" (bug#78738)
authorPip Cet <pipcet@protonmail.com>
Tue, 10 Jun 2025 12:00:30 +0000 (12:00 +0000)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:02:53 +0000 (10:02 +0200)
commitec313b205f35f06c01321b26c2da883a9746afea
tree29be7f1ea3e1ba6b4efc0f5122129ff0eae75db7
parent618e61f6a990e3137df838a3ba4b25efcfc29927
Fix crash when evaluating "(signal nil 5)" (bug#78738)

The docstring already warns against calling signal with a nil
error symbol, which is for internal use only, but we can avoid crashing
in this case.

* src/eval.c (Fsignal): Produce a "peculiar error" for more arguments
involving non-lists.

(cherry picked from commit 888f846d377a589c6fca5be5d2f4274f423e5fcf)
src/eval.c