[RTEMS Project] #4390: Make zero size allocation result consistent across directives

RTEMS trac trac at rtems.org
Tue Apr 20 22:41:58 UTC 2021


#4390: Make zero size allocation result consistent across directives
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  6.1
Component:  admin            |     Version:  6
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------

Comment (by Joel Sherrill):

 This is an area of undefined behavior per POSIX. It might be worth
 considering having this be a debug failure.

 https://pubs.opengroup.org/onlinepubs/009695399/functions/malloc.html

--
Ticket URL: <http://devel.rtems.org/ticket/4390#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list