[patch v1] malloc: add malloc_zero_aborts tunable

Paul Eggert eggert@cs.ucla.edu
Thu Feb 12 20:53:55 GMT 2026


On 2/12/26 11:15, DJ Delorie wrote:
> +  if (bytes == 0 && mp_.malloc_zero_aborts)
> +    abort();

This would cause malloc to fail to conform to the C standard, something 
that is far more likely to cause problems (even as an option) than to 
cure it. Nobody should use such an option.

Also, it would slow down malloc. It's OK to slow down malloc for a good 
reason, but for a bad reason?


More information about the Libc-alpha mailing list