mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-09 00:10:40 +01:00
Ensure unmapped VMM ranges return an invalid span
This commit is contained in:
parent
0a608fb4b2
commit
262f92900d
@ -156,7 +156,7 @@ namespace skyline {
|
||||
auto [blockSpan, rangeOffset]{LookupBlockLocked(virt, cpuAccessCallback)};
|
||||
if (blockSpan.size() - rangeOffset >= size) {
|
||||
TranslatedAddressRange ranges;
|
||||
ranges.push_back(blockSpan.subspan(rangeOffset, size));
|
||||
ranges.push_back(blockSpan.subspan(blockSpan.valid() ? rangeOffset : 0, size));
|
||||
return ranges;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user