BUG: realloc(p,0) should be consistent with malloc(0)
Florian Weimer
fweimer@redhat.com
Mon Jun 16 19:35:01 GMT 2025
* Adhemerval Zanella Netto:
> I have re-read the whole thread and it seems that most maintainers are OK
> with this change and agree that current POSIX's realloc spec has some
> drawbacks (albeit it still allows current glic behavior).
>
> The only one involved in the previous thread that raised some objection to
> this change was Joseph [1], but I will let to say if he still think this
> potential change to glibc is ill-advised.
I objected then, and I'm objecting now as well.
My rationale has not changed:
<https://inbox.sourceware.org/libc-alpha/8734kl1pim.fsf@oldenburg.str.redhat.com/>
I believe Siddhesh's proposed patch as the time was mostly a device to
drive the discussion to a conclusion, which it did.
Thanks,
Florian
More information about the Libc-alpha
mailing list