]> 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)
committerMike Frysinger <vapier@gentoo.org>
Sat, 12 Nov 2016 05:44:38 +0000 (00:44 -0500)
commit3f97c0cafa1d661fe2ffa946c215f613beb32cd6
tree8aeaddc3fa20d5bf0f2fbdcc2f8d77cd326d82c1
parentcafa0319f8ff701b7edd56e3e244e79abcf84748
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.

(cherry picked from commit a3b473373ee43a292f5ec68a7fda6b9cfb26a9b0)
(cherry picked from commit a69d26143b80cb1927481509279577c57bc22ba4)
malloc/arena.c