Hi Bruno,

On Mon, Jun 16, 2025 at 11:05:19AM +0200, Bruno Haible wrote:
> Hi Alejandro,
> 
> > Could you please remind me of what gnulib has done regarding
> > realloc(p, 0)?  Is there anything else we need to do, or gnulib is done?
> 
> Since 2024-11-04, commit "realloc-posix: realloc (..., 0) now returns nonnull"
> to be precise, gnulib's 'realloc-posix' module arranges for realloc (p, 0)
> to free p and return a pointer to a new region of size zero.
> See [1], 4th bullet point.
> 
> Gnulib is done with this topic, yes.

Thanks!  I'll write to glibc to propose following gnulib, as there has
been no fallout from this, as Paul and I expected.

I've updated the C Committee about this.


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature

Reply via email to