[RFC PATCH] realloc: Make REALLOC_ZERO_BYTES_FREES into a tunable
Alejandro Colomar
alx@kernel.org
Wed Jan 8 11:50:19 GMT 2025
Hi DJ, Paul,
On Thu, Oct 24, 2024 at 11:19:16PM +0200, Alejandro Colomar wrote:
> On Thu, Oct 24, 2024 at 02:27:37PM GMT, DJ Delorie wrote:
> > What we need is for someone to
> > FIND OUT which cases actually exist in practice, and what breaking them
> > would mean.
> >
> > Hard data beats opinion every day.
> >
> > I personaly think realloc(...,0) should match malloc(0) when
> > appropriate, but I'm against change *in general* if applications could
> > unknownly break in the future because of it. I really don't like
> > surprises.
gnulib did change that back in November, in the realloc-posix module.
Paul, I guess nothing has broken, did it?
>
> Agreed.
>
> Who is able to test that?
I'd like to ping about this. Is anyone able to test such a change in
Fedora?
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250108/e31c4637/attachment.sig>
More information about the Libc-alpha
mailing list