From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: fsanitize=bounds-strict caught potential error Date: Sun, 05 Dec 2021 15:55:34 +0200 Message-ID: <83wnkj2m21.fsf@gnu.org> References: <87o85vp5hs.fsf.ref@yahoo.com> <87o85vp5hs.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16104"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 14:57:12 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mts0t-00042A-S5 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 14:57:12 +0100 Original-Received: from localhost ([::1]:45764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mts0s-00058y-AW for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 08:57:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtrzP-0003sb-7Y for emacs-devel@gnu.org; Sun, 05 Dec 2021 08:55:39 -0500 Original-Received: from [2001:470:142:3::e] (port=39780 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtrzO-0002YI-WC; Sun, 05 Dec 2021 08:55:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l0iC1M/qfyUdh5SzOCvGViXRfxlbpw4ab4d579T0t0A=; b=rVTG66Rr/5Jk GW2FjsIORO8RWArMZAfQfj2NWsIIKKK+ZwdF1D3ebzpctrMiItfx5EcHY3YwqMCdig8ukh/JeacDk vbdjE4wfiKsg63SGGQnViCbUeNY54f5L1QJPhjTWZG/ZYogNeM3lQHwYWdXVcnELYG7i+AwDQgszf G2dPKNt67qNvbDQp807wv0hSdOuTbSqL+k2nQW8POs4lcsTFWlbHS3aYYIKismmA5CN5ak/2KmT+y D7p7nviXOzKWGXLU5x9NE1wmheK7bDeFctjTKNr6Jnt5GamsqNqLLnGQf5ks9dFTBVmxW+hmUrCSe hV8Oqn14cyaOc0DOFSnT9Q==; Original-Received: from [87.69.77.57] (port=3869 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtrzO-000598-Jv; Sun, 05 Dec 2021 08:55:38 -0500 In-Reply-To: <87o85vp5hs.fsf@yahoo.com> (message from Po Lu on Sun, 05 Dec 2021 21:04:47 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280997 Archived-At: > From: Po Lu > Date: Sun, 05 Dec 2021 21:04:47 +0800 > > I don't know if this message is correct or not, but I got > > xdisp.c:30394:37: runtime error: index -1 out of bounds for type 'iterator_stack_entry [5]' The compiler doesn't know enough to realize that this code can never be executed with it->sp < 1. This code is there since 2003, and never gave us any trouble.