BUG: realloc(p,0) should be consistent with malloc(0)
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Jun 16 20:59:37 GMT 2025
On 16/06/25 16:35, Florian Weimer wrote:
> * 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.
Alright, sorry if I missed it (for some reason Alejandro link did not have
your reply in the thread overview).
So I think we are far from consensus on this change.
More information about the Libc-alpha
mailing list