Merge "Handle scudo_ring_buffer_size = 0" am: cad7f577d1 am: ca83d5092b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2385374 Change-Id: I834a9d25a486d08d49e4cc70317615b80ad54b92 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
5edf44e021
1 changed files with 6 additions and 3 deletions
|
|
@ -44,9 +44,12 @@ ScudoCrashData::ScudoCrashData(unwindstack::Memory* process_memory,
|
|||
__scudo_get_stack_depot_size());
|
||||
auto region_info = AllocAndReadFully(process_memory, process_info.scudo_region_info,
|
||||
__scudo_get_region_info_size());
|
||||
auto ring_buffer = AllocAndReadFully(process_memory, process_info.scudo_ring_buffer,
|
||||
process_info.scudo_ring_buffer_size);
|
||||
if (!stack_depot || !region_info || !ring_buffer) {
|
||||
std::unique_ptr<char[]> ring_buffer;
|
||||
if (process_info.scudo_ring_buffer_size != 0) {
|
||||
ring_buffer = AllocAndReadFully(process_memory, process_info.scudo_ring_buffer,
|
||||
process_info.scudo_ring_buffer_size);
|
||||
}
|
||||
if (!stack_depot || !region_info) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue