]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Avoid premature fallback to mmap [BZ #20284]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 21 Jun 2016 19:29:21 +0000 (21:29 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 21 Jun 2016 19:29:21 +0000 (21:29 +0200)
commita3b473373ee43a292f5ec68a7fda6b9cfb26a9b0
treeceb68dd3002c2f0a39b19260f3cc1011bfa6606e
parent4751bbe2ad4d1bfa05774e29376d553ecfe563b0
malloc: Avoid premature fallback to mmap [BZ #20284]

Before this change, the while loop in reused_arena which avoids
returning a corrupt arena would never execute its body if the selected
arena were not corrupt.  As a result, result == begin after the loop,
and the function returns NULL, triggering fallback to mmap.
ChangeLog
malloc/arena.c