[musl] Re: realloci(): A realloc() variant that works in-place
Paul Eggert
eggert@cs.ucla.edu
Fri Oct 31 17:31:54 GMT 2025
On 10/31/25 11:25, Thiago Macieira wrote:
> I think the Committee would balk at adding a function
> that takes a pointer to already-freed memory whose purpose is to allow the
> contents of the new object to be adjusted solely based on arithmetic.
Do you know of any platforms where this does not in fact work? Other
than sanitizing platforms that go to some lengths to impose the
Committee's rules even though the hardware would work fine?
If not, then perhaps we can convince the Committee that the mismatch
between the current rules and reality is causing real harm, and that
it'd be a win for C's users to change the standard to match reality better.
More information about the Libc-alpha
mailing list