[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mgetgroups improvements

From: Bruno Haible
Subject: Re: mgetgroups improvements
Date: Wed, 9 Dec 2009 14:13:37 +0100
User-agent: KMail/1.9.9

Eric Blake wrote:
> Are there any implementations
> of malloc/realloc where malloc(0) does not return dereferencable memory at
> least sizeof(gid_t) in length?

Sure. The malloc in ElectricFence. With it, malloc(0) = malloc(1) returns a
single byte at the end of a memory page, with the next memory page being
unallocated or of protection PROT_NONE.

> > !   if (ng > 1)
> Please use (1 < ng) here, for consistency with the rest of Jim's style.
> Other than that, I'm okay with the patch.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]