Subject: Re: 29.1; Segmentation fault when setting mode-line-format

From: Ulrich Mueller <[email-masked]>
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))) ?