On 2024-10-25 05:20, Bruno Haible wrote:
     How could we call this module? 'realloc-ee' sounds too synthetic.

How about 'alloc-0-nonnull'?

Whatever the module's name is, it should affect malloc too, as there's little point to adjusting realloc without also adjusting malloc. This is needed for MS-Windows and for AIX sans __LINUX_SOURCE_COMPAT.

Similarly for alignalloc, aligned_alloc, aligned-malloc, calloc, posix_memalign, reallocarray, safe-alloc, and maybe others. (We have too many memory allocation modules and a cleanup is needed, but that's a different topic....)

I don't think we need to worry about alloca and malloca as they've never had this problem.

The lib/allocator.h API may need to change even if that's only to commentary.

Reply via email to