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.

Committed.

Bruno


Reply via email to