]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Correct malloc alignment on 32-bit architectures [BZ #6527]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 24 May 2016 06:05:15 +0000 (08:05 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 24 May 2016 06:05:15 +0000 (08:05 +0200)
commitdea39b13e2958a7f0e75b5594a06d97d61cc439f
tree09260fd3d3ac770d9f4ee34ce02d070b1688b4cd
parentdb1fa6b8d32a0c7155dcaed2f5f9388511613595
malloc: Correct malloc alignment on 32-bit architectures [BZ #6527]

After the heap rewriting added in commit
4cf6c72fd2a482e7499c29162349810029632c3f (malloc: Rewrite dumped heap
for compatibility in __malloc_set_state), we can change malloc alignment
for new allocations because the alignment of old allocations no longer
matters.

We need to increase the malloc state version number, so that binaries
containing dumped heaps of the new layout will not try to run on
previous versions of glibc, resulting in obscure crashes.

This commit addresses a failure of tst-malloc-thread-fail on the
affected architectures (32-bit ppc and mips) because the test checks
pointer alignment.
ChangeLog
malloc/hooks.c
malloc/malloc.c