diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | malloc/malloc.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index e071097f5d..997431eea9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-10-27 Florian Weimer <fweimer@redhat.com> + + * malloc/malloc.c (sysmalloc): Initialize previous size field of + mmaped chunks. + 2016-10-28 Florian Weimer <fweimer@redhat.com> * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size diff --git a/malloc/malloc.c b/malloc/malloc.c index f3378b90ed..a10477ed4c 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -2306,6 +2306,7 @@ sysmalloc (INTERNAL_SIZE_T nb, mstate av) else { p = (mchunkptr) mm; + set_prev_size (p, 0); set_head (p, size | IS_MMAPPED); } |