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:08:05 +0300 Message-ID: <83r0zjopre.fsf@gnu.org> References: <87mta8qx48.fsf@yahoo.com> <83v8ownmi1.fsf@gnu.org> 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="14123"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 58334@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 Fri Oct 07 14:41:48 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 1ogmfk-0003UO-Cp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 14:41:48 +0200 Original-Received: from localhost ([::1]:55716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogmfi-0003Fp-RK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 08:41:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oglDy-0002UX-DV for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 07:09:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oglDy-0006uh-5h for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 07:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oglDy-0006bn-1R for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 07:09: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:09: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.166514089425337 (code B ref 58334); Fri, 07 Oct 2022 11:09:02 +0000 Original-Received: (at 58334) by debbugs.gnu.org; 7 Oct 2022 11:08:14 +0000 Original-Received: from localhost ([127.0.0.1]:34481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oglDB-0006ab-PL for submit@debbugs.gnu.org; Fri, 07 Oct 2022 07:08:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oglDA-0006aM-7c for 58334@debbugs.gnu.org; Fri, 07 Oct 2022 07:08:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oglD4-0006eR-3Z; Fri, 07 Oct 2022 07:08:07 -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=FZGXGnPpvEJR1yDEzN9rdT0cUe9Rxypk8D+JgEuGTN4=; b=Oo6L5jiC7UcjgvG0/v0x k7rPreUrGSeBQ6UMBUfW2tgqXwIU4ygdJ/t8fwYChESa9PcjUVbV2m6c0US75ORZUiOGQ6lZp87pz KU+AKCoI0ArSW3rTQt50CqDIdSP3P2wQ3IAP8l1BuNkmLEMwRJesvhlRvz3TEu+ccBeljr+6zTNc6 9w1C6s+ZRmUdx8B8nhYks6K5desyxomyGMfDBwtnDv+37XlUKdC5hQ6x1SlE+UElls6pQMs9CGMOr gCspLLsEX872R8U5btutlOdDKFk3+z0BvNhfEwVgpWdSeQHDibYHnJpLEqPLRkiLrpVUaQ4qIFVO1 kP1PsNm8W1MI2Q==; Original-Received: from [87.69.77.57] (port=4261 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 1oglD3-0008Ks-DX; Fri, 07 Oct 2022 07:08:05 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Fri, 07 Oct 2022 10:07:01 +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:244756 Archived-At: > From: Gerd Möllmann > Cc: Po Lu , 58334@debbugs.gnu.org > Date: Fri, 07 Oct 2022 10:07:01 +0200 > > Gerd Möllmann writes: > > > Eli Zaretskii writes: > >> IOW, I don't see how block_input anywhere can solve this particular > >> problem. > > > > I wonder too. > > And, while vaccuming, I also wondered what happens with the glyph > matrices, and maybe other global state? Fvertical_motion (and other functions that call the move_it_* functions) in general don't rely on glyph matrices. So I'm not sure what exactly worries you. In any case, glyph matrices are kept as long as their windows are kept. They aren't "freed" like faces or images.