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#58334: 29.0.50; ASAN heap use after free in gui_produce_glyphs Date: Fri, 07 Oct 2022 14:29:19 +0300 Message-ID: <83k05boos0.fsf@gnu.org> References: <87mta8qx48.fsf@yahoo.com> <83v8ownmi1.fsf@gnu.org> <874jwgqbd6.fsf@yahoo.com> <87zge8orla.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27626"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 58334@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 07 15:56:08 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 1ognpf-0006xL-1b for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 15:56:07 +0200 Original-Received: from localhost ([::1]:51492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ognpd-0005ZL-U4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 09:56:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oglYJ-0003wU-02 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 07:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oglYI-00027Q-Kq for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 07:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oglYI-0000sx-8O for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 07:30: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: Fri, 07 Oct 2022 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58334 X-GNU-PR-Package: emacs Original-Received: via spool by 58334-submit@debbugs.gnu.org id=B58334.16651421783340 (code B ref 58334); Fri, 07 Oct 2022 11:30:02 +0000 Original-Received: (at 58334) by debbugs.gnu.org; 7 Oct 2022 11:29:38 +0000 Original-Received: from localhost ([127.0.0.1]:34522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oglXu-0000ro-Ei for submit@debbugs.gnu.org; Fri, 07 Oct 2022 07:29:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oglXs-0000rb-O8 for 58334@debbugs.gnu.org; Fri, 07 Oct 2022 07:29:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oglXc-0001y3-N9; Fri, 07 Oct 2022 07:29:31 -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=I2wvP9oomFIKmC2EolujtwQ1VjLyC9YM9WQ9fYFBhBk=; b=lYAatGA+PzlVhPDf715G B90BiXXgzo8SGk7J3h/Cgf585hWxUhJrKtICEIw6EzVjeKC14LHtpAp+YnKPrJpbeznHn/0bQ6uB6 x5N65UF06QjENa1ok/KNL77cMwVIW3mEFDRd4F9yywvqAS73VC20NXRHlT115pRcim4hDt/Zuixl9 hJ9hP2pCUlCMUNadLX4BDaw9xkwu2QENIyYJU47KniZgE/QUvpF17Dx9WCqIo2xYFatSGGNFQp9qu hQadQaEFF20rCtJ4yslGsM0mTGtxiEUsFAvd1pfabnFiQdIeTPMb/rAbN75CHjvVXeoyd/Jt5c8e6 dZ2sxnkzIAgRFw==; Original-Received: from [87.69.77.57] (port=1590 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 1oglXb-0003NC-Eg; Fri, 07 Oct 2022 07:29:20 -0400 In-Reply-To: <87zge8orla.fsf@yahoo.com> (message from Po Lu on Fri, 07 Oct 2022 18:28:33 +0800) 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:244767 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , 58334@debbugs.gnu.org > Date: Fri, 07 Oct 2022 18:28:33 +0800 > > Gerd Möllmann writes: > > > Redisplay has two phases: > > > > 1. Building desired matrices, that is, what should be on the screen > > after redisplay. > > Well, at least there's this in redisplay_internal (I think you wrote > it): > > /* I don't think this happens but let's be paranoid. */ > if (redisplaying_p) <================================= > return; > > So perhaps the right thing to do would be to replace the comment with > one saying that process_pending_signals can potentially cause redisplay > to be called within itself. You don't need process_pending_signals, it's enough that some hook calls 'redisplay' from Lisp.