summaryrefslogtreecommitdiffstats
path: root/libunwindstack/include/unwindstack
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-02-06 14:51:48 -0800
committerChristopher Ferris <cferris@google.com>2018-02-06 15:00:04 -0800
commite762f1f193bbaff746bcbe4e4efdad9b3ebfeb26 (patch)
tree341be8e59856891621f0edd6d45bafa5297bf135 /libunwindstack/include/unwindstack
parent9d6b55928ca9829fa3a4ff1bb71c9668d452a085 (diff)
downloadsystem_core-e762f1f193bbaff746bcbe4e4efdad9b3ebfeb26.tar.gz
system_core-e762f1f193bbaff746bcbe4e4efdad9b3ebfeb26.tar.bz2
system_core-e762f1f193bbaff746bcbe4e4efdad9b3ebfeb26.zip
Check that dex pc is in a valid map.
Add new unit tests for dex pc being non-zero. Bug: 73004673 Test: Ran unit tests. Test: Ran art 137-cfi test on host for interpreter. Change-Id: I09bbf96d0ed65fc1e5896e4ab2bc67867e3b7fdb
Diffstat (limited to 'libunwindstack/include/unwindstack')
-rw-r--r--libunwindstack/include/unwindstack/Unwinder.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libunwindstack/include/unwindstack/Unwinder.h b/libunwindstack/include/unwindstack/Unwinder.h
index e8af8b437..ebe7b0a5d 100644
--- a/libunwindstack/include/unwindstack/Unwinder.h
+++ b/libunwindstack/include/unwindstack/Unwinder.h
@@ -45,14 +45,14 @@ struct FrameData {
uint64_t sp;
std::string function_name;
- uint64_t function_offset;
+ uint64_t function_offset = 0;
std::string map_name;
- uint64_t map_offset;
- uint64_t map_start;
- uint64_t map_end;
- uint64_t map_load_bias;
- int map_flags;
+ uint64_t map_offset = 0;
+ uint64_t map_start = 0;
+ uint64_t map_end = 0;
+ uint64_t map_load_bias = 0;
+ int map_flags = 0;
};
class Unwinder {