History log of /bionic/libc/malloc_debug/PointerData.cpp
Revision Date Author Comments
a9001ceb0a5083f9786652918d16cafbdabcf459 01-May-2018 Christopher Ferris <cferris@google.com> Fix nullptr dereference during sort.

Add new unit test that will crash without this fix.

Bug: 78900050

Test: Ran unit tests.
Change-Id: I73e1b89e965a7b399822c3a6f25cbc70d2d355e2
(cherry picked from commit c151bc30789ade22d5423b20d2c72948284bba3c)
8b70a0266d42297e9b38e6209588eb3621843e95 07-Mar-2018 Christopher Ferris <cferris@google.com> Refactor malloc debug.

Changes
- Refactor the code so that only guards require creating a special header
for every pointer allocated.
- Store only a single copy of every backtrace. This saves memory so that
turning on the backtrace option doesn't result in 10X memory usage.
- Added new option track_allocs that only verifies pointers are valid for
free/malloc_usable_size/realloc.
- Remove suffix from test names.
- Add the TRACK_ALLOCS options to all guard options.
- Add new option verify_pointers that is a lightweight way to verify
pointers that are passed to allocation routines.
- Do auto-formatting of the code.
- Updated documentation for all of these changes.

Bug: 74361929

Test: Ran unit tests.
Test: Ran libmemunreachable unit tests.
Test: Ran an app with backtrace enabled.

Change-Id: I3246c48ae4f9811f64622d90d0a9b4d9d818702c
(cherry picked from commit 4da2503d70dc4bc1444454876e3794b69227d90d)