News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by pcwalton on Monday January 18, 2016 @03:10PM (#10926578)
> Allocating zero bytes can fail (with dumb C libraries).

They might not be dumb; they might be forced into it to maintain compatibility with buggy programs and/or configure scripts (e.g. [1]).

[1]: http://www.openwall.com/lists/musl/2013/01/15/1

Re:Once upon a time, memory allocators made sense by cperciva on Monday January 18, 2016 @03:13PM (#10926597)
Unfortunately, as I wrote in the commit message which spawned this thread, this just encourages people to write more buggy programs.
Re:Once upon a time, memory allocators made sense by pcwalton on Monday January 18, 2016 @03:21PM (#10926641)
Or, more likely, it just encourages customers to abandon your alternative C library in favor of glibc to avoid breaking configure scripts (which is what forced musl's hand). I definitely think you're right in principle, but I can't blame musl's author for bowing to market pressure any more than I can blame Intel for sticking to x86 backwards compatibility.