[Bug 1730] Change malloc(0) behavior to match FreeBSD and Linux

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jan 25 12:31:13 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1730

--- Comment #4 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-01-25 06:31:12 CST ---
The non-NULL return is more common.  RTEMS needs a special case to force the
NULL return of malloc(0).  A _Workspace_Allocate(0) will return non-NULL for
example.  The C standard declares two valid implementation behaviors.  I don't
see why RTEMS should choose one that is less common and in addition to that
needs a special case to enforce it.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list