BUG: realloc(p,0) should be consistent with malloc(0)
Alejandro Colomar
alx@kernel.org
Sat Jun 21 03:00:29 GMT 2025
On Fri, Jun 20, 2025 at 07:58:30PM -0700, H. Peter Anvin wrote:
> Either way, my main point was that the uniqueness requirement *can* be
> satisfied without backing it up with memory.
Yup, thanks! That'll be useful for when I write a paper.
>
> (And I have seen unique pointers being used as error sentinels, i.e. "null
> pointers with payload".)
That's indeed what Doug mentioned. :)
Cheers,
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/20250621/d5968395/attachment-0001.sig>
More information about the Libc-alpha
mailing list