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.bugs Subject: bug#58042: 29.0.50; ASAN use-after-free in re_match_2_internal Date: Wed, 05 Oct 2022 16:27:27 +0300 Message-ID: <83a66atn7k.fsf@gnu.org> References: <83edvnv965.fsf@gnu.org> <83pmf6u76i.fsf@gnu.org> <83mtaau43p.fsf@gnu.org> <83ilkytyif.fsf@gnu.org> <877d1ewnx0.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10906"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, alan@idiocy.org, 58042@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 05 15:59:13 2022 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 1og4vY-0002fD-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 15:59:12 +0200 Original-Received: from localhost ([::1]:33560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og4vX-0001nZ-Jo for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 09:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og4RO-0001bR-GE for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 09:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og4RO-0004cs-88 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 09:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og4RO-0006J1-3H for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 09:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 13:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58042 X-GNU-PR-Package: emacs Original-Received: via spool by 58042-submit@debbugs.gnu.org id=B58042.166497647024221 (code B ref 58042); Wed, 05 Oct 2022 13:28:02 +0000 Original-Received: (at 58042) by debbugs.gnu.org; 5 Oct 2022 13:27:50 +0000 Original-Received: from localhost ([127.0.0.1]:56261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og4RB-0006Ib-Kx for submit@debbugs.gnu.org; Wed, 05 Oct 2022 09:27:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og4R6-0006IK-Ai for 58042@debbugs.gnu.org; Wed, 05 Oct 2022 09:27:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og4R0-0004aM-5x; Wed, 05 Oct 2022 09:27:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=VfsMaSRjXepb3NS74XYaj7J0DV414rOYTobpP2sWOic=; b=HO35xTcoThHtK/8UVI8a icNpSlrSvu7RpX5LfdGCRW1R5i2UpZiq9xom9naDzyN74/LkWhZFgAPJwl2hatpVZzvQ4AsAVgdXw wHYfmxILzBsmJviRX+0mRv6ntXcX/BSH8HNlY8QojYm1IKgFCaQgCy0O6DWRCWnpuL+QmRqKLm+hr FVobwU0fCGNTCPZNMU0LQetPDjWK0HK+FncHPVKanRwBoczMUUJ0BS2kTdcvf6DV7okF6lhu2TEQd dIl8kuZkQE7ULK+Yc6DlF4hxuCnIlYkdtC34DX+p6xt/hZayiuPRCKXnqE1z/gb4F1XMtWaRipjgq azzmekLDqpaZSg==; Original-Received: from [87.69.77.57] (port=3054 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 1og4Qt-0001C6-RO; Wed, 05 Oct 2022 09:27:36 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Wed, 05 Oct 2022 13:10:03 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:244537 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , 58042@debbugs.gnu.org, Alan Third > > Date: Wed, 05 Oct 2022 13:10:03 +0200 > > Can somone please help me understand how this works? > > Let's say we are in memq called for list L. Fmemq uses FOR_EACH_TAIL, > which can call maybe_quit, which executes arbitrary Lisp, which can > modify L. "Arbitrary Lisp" being redisplay that calls various hooks, like window-configuration-change-hook etc.? IOW, this is a macOS only thing? Perhaps on macOS probably_quit should bind inhibit_redisplay non-zero? I see no particular reason to trigger redisplay from maybe_quit.