[PATCH] Return NULL for zero size allocations
chrisj at rtems.org
Wed May 5 07:00:32 UTC 2021
On 5/5/21 4:58 pm, Chris Johns wrote:
> On 5/5/21 4:52 pm, Sebastian Huber wrote:
>> In POSIX, zero size memory allocations are implementation-defined
>> behaviour. The implementation has two options:
>> Linux and FreeBSD return a unique pointer for zero size memory
>> allocations. Return NULL on RTEMS to more likely catch the use of a
>> zero size memory area by erroneous applications.
>> Update #4390.
> Huh? Are we going in circles here ?
Ah I have not read the related thread. Sorry.
More information about the devel