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

Commit 6e0a0dad authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "unwindstack: fix dangling pointer in LocalUpdatableMaps."

parents abd50461 8a243118
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -139,6 +139,9 @@ bool LocalUpdatableMaps::Reparse() {
      if (start == info->start && end == info->end && flags == info->flags && *name == info->name) {
      if (start == info->start && end == info->end && flags == info->flags && *name == info->name) {
        // No need to check
        // No need to check
        search_map_idx = old_map_idx + 1;
        search_map_idx = old_map_idx + 1;
        if (new_map_idx + 1 < maps_.size()) {
          maps_[new_map_idx + 1]->prev_map = info.get();
        }
        maps_[new_map_idx] = nullptr;
        maps_[new_map_idx] = nullptr;
        total_entries--;
        total_entries--;
        break;
        break;