Conversation

In hardened_malloc, I chose to have realloc of size 0 work the same way as malloc of size 0 for standards compliance and much safer handling of bugs leading to this happening. IIRC, the current C standard forbids what glibc is doing but also declares realloc of size 0 deprecated.
1
3