Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30a25286 authored by Florian Mayer's avatar Florian Mayer
Browse files

Handle scudo_ring_buffer_size = 0

Bug: 263287052
Change-Id: I0bec3a817d7a16c72d5dfeddd0dcc86830f5a311
parent 9b9924b4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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,
  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 || !ring_buffer) {
  }
  if (!stack_depot || !region_info) {
    return;
  }