This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PING: PATCH: [BZ #14562] Properly handle fencepost withMALLOC_ALIGN_MASK
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 24 Sep 2012 18:23:25 +0530
- Subject: Re: PING: PATCH: [BZ #14562] Properly handle fencepost withMALLOC_ALIGN_MASK
- References: <CAMe9rOrWeHn-Quz-Q4C=3zL=0UKi70WAPQPsevtay-n1XsN_pQ@mail.gmail.com>
On Wed, 12 Sep 2012 08:37:56 -0700, H.J. wrote:
> >
> > [BZ #14562]
> > * malloc/arena.c (heap_trim): Properly get fencepost and
> > adjust new chunk size with MALLOC_ALIGN_MASK.
Have you figured out how the misalignment happens? It looks as though
heap->size should be aligned to page mask, and any grow/shrink requests
(coming from int_malloc) should also pass correctly aligned parameters,
so any such misalignment should probably be a bug elsewhere?
Regards,
Siddhesh