Skip to content

Commit 973117a

Browse files
committed
Have custom ranges go through the same safety checks as everything else, to avoid empty ranges, or ranges with no permissions
1 parent 6a97897 commit 973117a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lldb/source/Target/Process.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6677,11 +6677,8 @@ static void GetUserSpecifiedCoreFileSaveRanges(Process &process,
66776677

66786678
for (const auto &range : regions) {
66796679
auto entry = option_ranges.FindEntryThatContains(range.GetRange());
6680-
if (entry) {
6681-
ranges.Append(range.GetRange().GetRangeBase(),
6682-
range.GetRange().GetByteSize(),
6683-
CreateCoreFileMemoryRange(range));
6684-
}
6680+
if (entry)
6681+
AddRegion(range, true, ranges);
66856682
}
66866683
}
66876684

0 commit comments

Comments
 (0)