[Bug 4688] free()-ing a stack variable

bugzilla at busybox.net bugzilla at busybox.net
Fri Jan 13 03:46:54 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4688

Mike Frysinger <vapier at gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Mike Frysinger <vapier at gentoo.org> 2012-01-13 03:46:53 UTC ---
uClibc's behavior is standards conforming.  from the spec:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html

[...], if the argument does not match a pointer earlier returned by [...]
malloc(), or if the space has been deallocated by a call to free() or
realloc(), the behavior is undefined.

if you want to propose a debug option to add optional checking, then by all
means.  but current uClibc behavior is not broken.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list