GNU bug report logs - #79156
igc: igc_xpalloc_ambig SEGV

Previous Next

Package: emacs;

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

Date: Sat, 2 Aug 2025 15:28:01 UTC

Severity: normal

Fixed in version 31.1

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

Full log


Message #14 received at 79156 <at> debbugs.gnu.org (full text, mbox):

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Pip Cet <pipcet <at> protonmail.com>, eller.helmut <at> gmail.com,
 79156 <at> debbugs.gnu.org
Subject: Re: bug#79156: igc: igc_xpalloc_ambig SEGV
Date: Sat, 02 Aug 2025 18:41:19 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Ouch. That seems to me to be a bug in how charset.c calls xpalloc, but
>> I'm not sure whether there are other callers that rely on this behavior,
>> so it's safest to work around it.
>
> xpalloc handles this case:
>
>   if (! pa)
>     *nitems = 0;

Yeah, I'd rather check the other igc variants of xpalloc, to make sure
they are compatible with the original, even if no one else uses that
particular feature.




This bug report was last modified 10 days ago.

Previous Next


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