memory: Contains check is inclusive

This commit is contained in:
IndecisiveTurtle 2024-07-25 02:52:47 +03:00
parent 8ccd93293c
commit 3b45003468
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ struct VirtualMemoryArea {
uintptr_t fd = 0;
bool Contains(VAddr addr, size_t size) const {
return addr >= base && (addr + size) < (base + this->size);
return addr >= base && (addr + size) <= (base + this->size);
}
bool IsFree() const noexcept {