OSDN Git Service

Bulletproof leak dump against null hash entries
authorChristopher Tate <ctate@google.com>
Mon, 9 Aug 2010 20:43:46 +0000 (13:43 -0700)
committerChristopher Tate <ctate@google.com>
Mon, 9 Aug 2010 20:43:46 +0000 (13:43 -0700)
commit52e7d3d91ab6a5bab77c5dfb1ed47381fd52f9ba
tree95fd304d94292f13851cd4590e89a0b6acb3a297
parent18c5bcc66a9a7b2178dcdcf04a0716958798ab81
Bulletproof leak dump against null hash entries

Previously, the malloc leak checking code would crash in qsort()
if null entries existed in its bookkeeping table.  This change
makes the comparison function detect null entries and sort them
to the end safely.

Change-Id: I88244a7df1e289dd9d7992ce29606d505bd63079
libc/bionic/malloc_debug_common.c