summaryrefslogtreecommitdiff
path: root/linker/linker_debuggerd_android.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2021-01-06 21:02:19 -0800
committerPeter Collingbourne <pcc@google.com>2021-02-12 12:30:52 -0800
commit2753fc8ee5668b05a94dc3bc029ab9c67bc1af5a (patch)
tree32fff96bab2a62f23540a1b63334fa8496191ff6 /linker/linker_debuggerd_android.cpp
parent15ade069b10f7f5291e48c01db2da4852dae04b7 (diff)
Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info().
With this change we can report memory errors involving secondary allocations. Update the existing crasher tests to also test UAF/overflow/underflow on allocations with sizes sufficient to trigger the secondary allocator. Bug: 135772972 Change-Id: Ic8925c1f18621a8f272e26d5630e5d11d6d34d38
Diffstat (limited to 'linker/linker_debuggerd_android.cpp')
-rw-r--r--linker/linker_debuggerd_android.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/linker/linker_debuggerd_android.cpp b/linker/linker_debuggerd_android.cpp
index 203e44159..cba6345c1 100644
--- a/linker/linker_debuggerd_android.cpp
+++ b/linker/linker_debuggerd_android.cpp
@@ -42,6 +42,7 @@ static debugger_process_info get_process_info() {
.gwp_asan_metadata = __libc_shared_globals()->gwp_asan_metadata,
.scudo_stack_depot = __libc_shared_globals()->scudo_stack_depot,
.scudo_region_info = __libc_shared_globals()->scudo_region_info,
+ .scudo_ring_buffer = __libc_shared_globals()->scudo_ring_buffer,
};
}
#endif