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 15:14:55 +0300 Message-ID: <835ygvomo0.fsf@gnu.org> References: <83fsg1osb1.fsf@gnu.org> <837d1cpzxk.fsf@gnu.org> <83czb3on9w.fsf@gnu.org> <83a667on2a.fsf@gnu.org> <5481395d-f7d1-8b9f-59d5-f681c113f6dd@gmail.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="26157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58334@debbugs.gnu.org, luangruo@yahoo.com 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 Fri Oct 07 16:43:41 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 1ogoZg-0006dA-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 16:43:40 +0200 Original-Received: from localhost ([::1]:53684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogoZe-0003ok-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 10:43:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogmGo-0005qr-K0 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogmGo-0000hF-CD for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogmGo-0004KL-6k for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:16: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 12:16: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.166514490416559 (code B ref 58334); Fri, 07 Oct 2022 12:16:02 +0000 Original-Received: (at 58334) by debbugs.gnu.org; 7 Oct 2022 12:15:04 +0000 Original-Received: from localhost ([127.0.0.1]:34647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogmFs-0004J0-6H for submit@debbugs.gnu.org; Fri, 07 Oct 2022 08:15:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogmFq-0004I7-PP for 58334@debbugs.gnu.org; Fri, 07 Oct 2022 08:15:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogmFl-0000L2-CA; Fri, 07 Oct 2022 08:14:57 -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=+3MIlHH6gpKDarYMF9jbmOrOr7nnw5zR69jOPHKyI2E=; b=P0EsD26VzSSlOh7caEeR fKLoBFGuJeXAAkEOc1cxEAIPdikpv8NSMSWFnjC1at7hIa7gCkz0qAXp6Q9zHHmHGYG8YujfgM66R 7fa5I+U4GQohvQ383jp4IOy0zN+7yOl9hxIURjGBrAYbRTZ5dHYX9qCHyVVvX2dd1fuChZxaVSKMn YlcyMLS7I9L4/R0gAyiRor3nI9tzB5KbMmlL4AjAWk0H5QaiOibcglx6GGyGjMjkdXqk2Njtt7Ma6 2+NzIM5QHrf07MVEuFLAWtI/6IWXaVFHaScT8o7w2X4MPcQjJJoEJxKXd3ko2PwQeJ7d+0a5Zgtmp +eu+WVpcZJez4g==; Original-Received: from [87.69.77.57] (port=4386 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 1ogmFk-0004nK-MO; Fri, 07 Oct 2022 08:14:57 -0400 In-Reply-To: <5481395d-f7d1-8b9f-59d5-f681c113f6dd@gmail.com> (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Fri, 7 Oct 2022 14:08:02 +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:244803 Archived-At: > Date: Fri, 7 Oct 2022 14:08:02 +0200 > Cc: 58334@debbugs.gnu.org, luangruo@yahoo.com > From: Gerd Möllmann > > On 22-10-07 14:06 , Eli Zaretskii wrote: > >> Date: Fri, 7 Oct 2022 14:03:58 +0200 > >> Cc: 58334@debbugs.gnu.org, luangruo@yahoo.com > >> From: Gerd Möllmann > >> > >> On 22-10-07 14:01 , Eli Zaretskii wrote: > >>> I don't see how "GC inhibited" is related, except by chance. It > >>> sounds wrong to conflate the two. > >> > >> Couldn't we bind it in nsterm.m? > > > > Bind what? > > int count = inhibit_garbahe_collection (); > redisplay (); > unbind_to... Could be dangerous, unless we also inhibit all the hooks that redisplay can call, because who knows what arbitrary Lisp can do to memory? And some of the Lisp called by redisplay can't be easily disabled. Example: the :eval forms in the mode line.