]> git.ipfire.org Git - thirdparty/glibc.git/commit
Don't use the main arena in retry path if it is corrupt
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 24 Aug 2015 09:03:07 +0000 (14:33 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 24 Aug 2015 09:03:07 +0000 (14:33 +0530)
commitc3b9ef8dfc83e9d17da5adc73709d2f7dfbbaf13
tree904dfa22fa029a0fa6b8b43af3f47a3c935f8f28
parent92a9b22d70b85b7edd0484db8bf2465a969fb09e
Don't use the main arena in retry path if it is corrupt

If allocation on a non-main arena fails, the main arena is used
without checking to see if it is corrupt.  Add a check that avoids the
main arena if it is corrupt.

* malloc/arena.c (arena_get_retry): Don't use main_arena if it is
corrupt.
ChangeLog
malloc/arena.c