kern: add new overflow checks on KMemoryRegions
This commit is contained in:
1 parent
748893fe77
commit
0a1465f198
8 files changed
+32
-1
No files matched your search
@@ -93,6 +93,7 @@ namespace ams::kern {
|
||||
}
|
||||
|
||||
constexpr ALWAYS_INLINE bool Contains(uintptr_t address) const {
|
||||
MESOSPHERE_INIT_ABORT_UNLESS(this->GetEndAddress() != 0);
|
||||
return this->GetAddress() <= address && address <= this->GetLastAddress();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user