malloc: Correct size computation in realloc for dumped fake mmapped chunks
commit1e8a8875d69e36d2890b223ffe8853a8ff0c9512
authorFlorian Weimer <fweimer@redhat.com>
Wed, 8 Jun 2016 18:50:21 +0000 (8 20:50 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 8 Jun 2016 18:50:21 +0000 (8 20:50 +0200)
treeeb133b0a58fc24fda5b7093ddd5f259013333256
parent8fa8a330f95c2f39eae7960ccf2825e693789202
malloc: Correct size computation in realloc for dumped fake mmapped chunks

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.
ChangeLog
malloc/malloc.c