From 5ca2b07f949353a153222405ff34b3350c360929 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 9 Apr 2026 18:05:48 +0300 Subject: [PATCH] The above could trigger wrong writes and read one extra VMA entry (fixed) (#4237) --- src/core/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory.h b/src/core/memory.h index f9ae64942..2588fbd6a 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -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 {