mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-09 23:19:26 +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)};
|
auto [blockSpan, rangeOffset]{LookupBlockLocked(virt, cpuAccessCallback)};
|
||||||
if (blockSpan.size() - rangeOffset >= size) {
|
if (blockSpan.size() - rangeOffset >= size) {
|
||||||
TranslatedAddressRange ranges;
|
TranslatedAddressRange ranges;
|
||||||
ranges.push_back(blockSpan.subspan(rangeOffset, size));
|
ranges.push_back(blockSpan.subspan(blockSpan.valid() ? rangeOffset : 0, size));
|
||||||
return ranges;
|
return ranges;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user