platform_system_core/libbacktrace
Christopher Ferris d4c884330c Fix use of uninitialized memory.
When creating an UnwindMapLocal fails in the Build() function call,
the destructor for UnwindMap is called. Unfortunately, the map_cursor_
member variable has not been initialized, so the call to destroy it
winds up operating on garbage data.

Part of this is a result of a bad class hierarchy, so this refactors
the classes slightly, and properly initializes the map_cursor_ member
variable in the base class.

Bug: 26931578
Change-Id: I885596bf65e4ef63559cee2c56cd41576d5ecc1b
2016-02-05 15:22:34 -08:00
..
Android.build.mk libbacktrace: don't let llvm cflags cover libbacktrace's cflags. 2015-09-24 17:46:27 -07:00
Android.mk Fix for host simpleperf 'gettid' unsat. 2016-02-01 15:59:40 -05:00
Backtrace.cpp Put BacktraceOffline code into a separate library. 2016-01-25 16:26:48 -08:00
backtrace_offline_test.cpp Revert "Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""" 2015-09-22 04:46:57 +00:00
backtrace_test.cpp Modify tests to use executable memory. 2016-01-15 16:08:58 -08:00
backtrace_testlib.c Rewrite libbacktrace using C++. 2013-10-28 17:55:25 -07:00
BacktraceCurrent.cpp Fix libbacktrace host build. 2015-12-07 20:09:24 -08:00
BacktraceCurrent.h Discards frames for code within library. 2015-04-01 15:58:20 -07:00
BacktraceLog.h Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
BacktraceMap.cpp Merge "Clean up maps parsing in libbacktrace." 2015-09-23 05:35:05 +00:00
BacktraceOffline.cpp Put BacktraceOffline code into a separate library. 2016-01-25 16:26:48 -08:00
BacktraceOffline.h Revert "Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""" 2015-09-22 04:46:57 +00:00
BacktracePtrace.cpp Remove PtraceRead error message. 2015-06-12 23:03:22 -07:00
BacktracePtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00
GetPss.cpp Refactor the code. 2015-03-31 10:51:44 -07:00
GetPss.h Create an UnwindMapLocal object. 2014-04-03 14:19:24 -07:00
thread_utils.c Remove libbacktrace definition of gettid. 2015-04-30 12:52:21 -07:00
thread_utils.h Fix libbacktrace host build. 2015-12-07 20:09:24 -08:00
ThreadEntry.cpp Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
ThreadEntry.h Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
UnwindCurrent.cpp Discards frames for code within library. 2015-04-01 15:58:20 -07:00
UnwindCurrent.h Refactor the code. 2015-03-31 10:51:44 -07:00
UnwindMap.cpp Fix use of uninitialized memory. 2016-02-05 15:22:34 -08:00
UnwindMap.h Fix use of uninitialized memory. 2016-02-05 15:22:34 -08:00
UnwindPtrace.cpp Prevent crashes if a map cannot be created. 2015-05-14 17:56:41 -07:00
UnwindPtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00