This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/617] malloc(10396) actually allocates 4 less bytes
- From: "bugzilla1 at malloc dot de" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 28 Dec 2004 16:07:27 -0000
- Subject: [Bug libc/617] malloc(10396) actually allocates 4 less bytes
- References: <20041223172233.617.sxyang_2004@hotmail.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- 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.