bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64893: 29.1; Segmentation fault when setting mode-line-format


From: Ulrich Mueller
Subject: bug#64893: 29.1; Segmentation fault when setting mode-line-format
Date: Thu, 27 Jul 2023 14:33:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Function display_mode_element contains this code:

                    tem = props;
                    while (CONSP (tem))
                      {
                        oprops = plist_put (oprops, XCAR (tem),
                                            XCAR (XCDR (tem)));
                        tem = XCDR (XCDR (tem));
                      }

This will fail if props has an odd number of elements.
Not sure what would be a good fix, maybe change the condition to
(CONSP (tem) && CONSP (XCDR (tem))) ?





reply via email to

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