This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] malloc: Correct size computation in realloc for dumped fake mmapped chunks


On 06/08/2016 02:51 PM, Florian Weimer wrote:
> For regular mmapped chunks there are two size fields (hence a reduction
> by 2 * SIZE_SZ bytes), but for fake chunks, we only have one size field,
> so we need to subtract SIZE_SZ bytes.
> 
> This was initially reported as Emacs bug 23726.
> 
> 2016-06-08  Florian Weimer  <fweimer@redhat.com>
> 
> 	Emacs bug 23726.
> 	* malloc/malloc.c (dumped_main_arena_start): Update comment.
> 	(__libc_realloc): Correct size computation for dumped fake mmapped
> 	chunks.

Reviewed the existing mmapped chunk code, and this fix looks good to me.

-- 
Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]