GNU bug report logs - #64893
29.1; Segmentation fault when setting mode-line-format

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Thu, 27 Jul 2023 10:04:01 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: Ulrich Mueller <ulm <at> gentoo.org>
To: 64893 <at> debbugs.gnu.org
Subject: bug#64893: 29.1; Segmentation fault when setting mode-line-format
Date: Thu, 27 Jul 2023 14:33:38 +0200
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))) ?




This bug report was last modified 1 year and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.