Make zero size allocation result consistent across directives

2021-04-20 Thread Sebastian Huber
Hello, while working on the specification of some memory allocation directives I noticed that zero size allocations have no consistent behaviour in RTEMS. For example malloc( 0 ) returns NULL and posix_memalign(&p, align, 0) returns in p a unique pointer (or NULL if no memory is available). I

Re: Make zero size allocation result consistent across directives

2021-04-20 Thread Chris Johns
On 21/4/21 4:07 pm, Sebastian Huber wrote: > Hello, > > while working on the specification of some memory allocation directives I > noticed that zero size allocations have no consistent behaviour in RTEMS. For > example malloc( 0 ) returns NULL and posix_memalign(&p, align, 0) returns in > p a >