File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6185,11 +6185,9 @@ Status Process::GetMemoryRegionInfo(lldb::addr_t load_addr,
61856185 if (const lldb::ABISP &abi = GetABI ())
61866186 load_addr = abi->FixAnyAddress (load_addr);
61876187 Status error = DoGetMemoryRegionInfo (load_addr, range_info);
6188- // Reject a region of {0,0} or {0,UINT64_MAX}, neither are
6189- // meaningful responses.
6190- if (error.Success () && range_info.GetRange ().GetRangeBase () == 0 &&
6191- (range_info.GetRange ().GetByteSize () == 0 ||
6192- range_info.GetRange ().GetByteSize () == UINT64_MAX))
6188+ // Reject a region that does not contain the requested address.
6189+ if (error.Success () && (range_info.GetRange ().GetRangeBase () < load_addr ||
6190+ range_info.GetRange ().GetRangeEnd () <= load_addr))
61936191 error =
61946192 Status::FromErrorString (" Invalid memory region" );
61956193
You can’t perform that action at this time.
0 commit comments