From a134d160706d4ffc10d10dd84329a362a08e0ca9 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 30 Aug 2024 15:33:58 +0300 Subject: [PATCH] Kernel: Fix MemoryRegion test for contains_fully --- kernel/kernel/Memory/MemoryRegion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/Memory/MemoryRegion.cpp b/kernel/kernel/Memory/MemoryRegion.cpp index 92f39061..b95dc2f8 100644 --- a/kernel/kernel/Memory/MemoryRegion.cpp +++ b/kernel/kernel/Memory/MemoryRegion.cpp @@ -35,7 +35,7 @@ namespace Kernel bool MemoryRegion::contains_fully(vaddr_t address, size_t size) const { - return m_vaddr <= address && address + size < m_vaddr + m_size; + return m_vaddr <= address && address + size <= m_vaddr + m_size; } bool MemoryRegion::overlaps(vaddr_t address, size_t size) const