Fix a crash in handle_display_spec
* src/xdisp.c (handle_display_spec): Check that the cdr of the disable-eval spec is a cons before taking its car. (Bug#41232)
This commit is contained in:
committed by
Eli Zaretskii
parent
a37290a6f9
commit
48830c73e7
@@ -5104,7 +5104,7 @@ handle_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
|
||||
if (CONSP (spec) && EQ (XCAR (spec), Qdisable_eval))
|
||||
{
|
||||
enable_eval = false;
|
||||
spec = XCAR (XCDR (spec));
|
||||
spec = CONSP (XCDR (spec)) ? XCAR (XCDR (spec)) : Qnil;
|
||||
}
|
||||
|
||||
if (CONSP (spec)
|
||||
|
||||
Reference in New Issue
Block a user