diff --git a/Core/Memory/MemoryManager.cpp b/Core/Memory/MemoryManager.cpp index d9930fa..363658f 100644 --- a/Core/Memory/MemoryManager.cpp +++ b/Core/Memory/MemoryManager.cpp @@ -124,6 +124,11 @@ namespace Memory } AllocatedPagesList.push_back({Address, Count}); + + /* For security reasons, we clear the memory + if the page is user accessible. */ + if (User) + memset(Address, 0, Count * PAGE_SIZE); return Address; }