The above could trigger wrong writes and read one extra VMA entry (fixed) (#4237)

This commit is contained in:
georgemoralis 2026-04-09 18:05:48 +03:00 committed by GitHub
parent 2c6d41cdd4
commit 5ca2b07f94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ struct VirtualMemoryArea {
}
bool Overlaps(VAddr addr, u64 size) const {
return addr <= (base + this->size) && (addr + size) >= base;
return addr < (base + this->size) && (addr + size) > base;
}
bool IsFree() const noexcept {