Re: mgetgroups: Avoid an unlikely signed integer overflow on macOS.

Pádraig Brady <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
On 08/08/2026 03:46, Collin Funk wrote:
> I've attached 2 patches. The first avoids an unlikely (impossible?)
> integer overflow used for allocating a buffer. It only occurs on systems
> with a buggy getgrouplist. The comments say Darwin has the bug, but I
> haven't checked which versions. This was found in coreutils coverity.
> 
> The second adjusts the module to use reallocarray, instead of
> implementing a similar function ourself here.
> 
> Will push them in a bit.
LGTM, thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.