GNU bug report logs - #58334
29.0.50; ASAN heap use after free in gui_produce_glyphs

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Thu, 6 Oct 2022 15:04:01 UTC

Severity: normal

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: luangruo <at> yahoo.com, 58334 <at> debbugs.gnu.org
Subject: bug#58334: 29.0.50; ASAN heap use after free in gui_produce_glyphs
Date: Fri, 07 Oct 2022 15:05:41 +0300
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Cc: luangruo <at> yahoo.com,  58334 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 14:01:49 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > So I would recommend to fix FACE_FROM_ID to re-generate the basic
> > faces if needed, on the assumption that the cases where we have
> > problems with using face ID are limited to basic faces.  If, after
> > that, we will find cases with non-basic faces, I'd first look for more
> > opportunities to use inhibit_free_realized_faces.
> 
> Sigh, I'd rather do something easy

I'm not sure there are any "easy" solutions to this.  We could keep
sprinkling inhibit_free_realized_faces some more (over the last years,
I added quite a few of them, and in other cases added calls to
realize_basic_faces).

> BTW, I've commented out the call to redisplay in nsterm.m
> layoutSomething now in my branch.  Let's see what the effect is.  So far
> I don't notice anything.

If Git history for the code which calls redisplay shows commits that
have references to bug reports in their log messages, perhaps read
those bug reports to see if they show recipes for problems that were
supposed to be fixed by adding that call.




This bug report was last modified 2 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.