diff options
author | Peter Collingbourne <pcc@google.com> | 2021-01-06 21:02:19 -0800 |
---|---|---|
committer | Peter Collingbourne <pcc@google.com> | 2021-02-12 12:30:52 -0800 |
commit | bb4b49c63c64a622d1b4bc6df00c53a93b3da97d (patch) | |
tree | dcc9ca1dbafc17f287b394c51a0026c48be2f7d7 /debuggerd/crash_dump.cpp | |
parent | 7b204ac4cad6531e9d95fa25f787c01e889dd7af (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 'debuggerd/crash_dump.cpp')
-rw-r--r-- | debuggerd/crash_dump.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debuggerd/crash_dump.cpp b/debuggerd/crash_dump.cpp index 68a43cffb..c8612bfeb 100644 --- a/debuggerd/crash_dump.cpp +++ b/debuggerd/crash_dump.cpp @@ -303,6 +303,7 @@ static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo, process_info->gwp_asan_metadata = crash_info->data.d.gwp_asan_metadata; process_info->scudo_stack_depot = crash_info->data.d.scudo_stack_depot; process_info->scudo_region_info = crash_info->data.d.scudo_region_info; + process_info->scudo_ring_buffer = crash_info->data.d.scudo_ring_buffer; FALLTHROUGH_INTENDED; case 1: case 2: |