From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#64893: 29.1; Segmentation fault when setting mode-line-format Date: Thu, 27 Jul 2023 14:33:38 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 64893@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 27 15:15:43 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qP0qB-0007UO-Nu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jul 2023 15:15:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qP0Bw-0002Vo-24; Thu, 27 Jul 2023 08:34:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qP0Bu-0002VP-G0 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 08:34:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qP0Bu-0002tt-81 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qP0Bu-0002VZ-3y for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 08:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2023 12:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64893 X-GNU-PR-Package: emacs Original-Received: via spool by 64893-submit@debbugs.gnu.org id=B64893.16904612329621 (code B ref 64893); Thu, 27 Jul 2023 12:34:02 +0000 Original-Received: (at 64893) by debbugs.gnu.org; 27 Jul 2023 12:33:52 +0000 Original-Received: from localhost ([127.0.0.1]:40842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP0Bj-0002V6-Te for submit@debbugs.gnu.org; Thu, 27 Jul 2023 08:33:52 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183]:38704 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP0Bi-0002Us-IA for 64893@debbugs.gnu.org; Thu, 27 Jul 2023 08:33:51 -0400 In-Reply-To: (GNU bug Tracking System's message of "Thu, 27 Jul 2023 10:04:02 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266188 Archived-At: 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))) ?