GNU bug report logs -
#74224
[PATCH][scratch/igc] pgtk: fix crashing bug in atimer used for checking scaling
Previous Next
Reported by: Fejfighter <fejfighter <at> gmail.com>
Date: Wed, 6 Nov 2024 08:06:02 UTC
Severity: normal
Tags: patch
Fixed in version 31.1
Done: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 74224 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> LGTM. Can you commit that yourself to the branch?
I don't have a savannah account for emacs, but I have just registered and
will chase up approvals.
timers are cleaned up by cancel_atimer(), then they get put on a free list
(`free_atimers` on line 132 in the snippet).
It appears that we rely on the OS to cleanup at emacs shutdown.
On Wed, Nov 6, 2024 at 9:36 PM Gerd Möllmann <gerd.moellmann <at> gmail.com>
wrote:
> Jeff Walsh <fejfighter <at> gmail.com> writes:
>
> > #ifdef WINDOWSNT
> > #define raise(s) w32_raise(s)
> > @@ -132,7 +133,13 @@ start_atimer (enum atimer_type type, struct
> timespec timestamp,
> > free_atimers = t->next;
> > }
> > else
> > - t = xmalloc (sizeof *t);
> > + {
> > +#ifdef HAVE_MPS
> > + t = igc_xzalloc_ambig (sizeof *t);
> > +#else
> > + t = xmalloc (sizeof *t);
> > +#endif
> > + }
> >
> > /* Fill the atimer structure. */
> > memset (t, 0, sizeof *t);
>
> On second thought, and I don't know if it's relevant, do we need to
> igc_xfree that?
>
[Message part 2 (text/html, inline)]
This bug report was last modified 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.