[Bug libc/617] malloc(10396) actually allocates 4 less bytes
bugzilla1 at malloc dot de
sourceware-bugzilla@sources.redhat.com
Tue Dec 28 16:07:00 GMT 2004
------- Additional Comments From bugzilla1 at malloc dot de 2004-12-28 16:07 -------
> As far as I know, the internal management data structure
> of malloc is called "malloc_chunk"(see bellow). The fields
> <prev_size> and <size> are the space overhead of management.
> They are 8 bytes in total.
No, the _overhead_ is only 4 bytes. prev_size is only used
when the chunk is "free" (i.e. not under user control).
It is always guranteed that there is a following chunk, i.e.
one whose prev_size file can be used for user data.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sources.redhat.com/bugzilla/show_bug.cgi?id=617
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list