Fix uninitialized PTE pages causing memory corruption
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 42s
Builds / ExectOS (i686, release) (push) Successful in 40s
Builds / ExectOS (i686, debug) (push) Successful in 53s
Builds / ExectOS (amd64, debug) (push) Successful in 55s

This commit is contained in:
2026-03-03 06:44:40 +01:00
parent a72bfd3902
commit ae8ac1eacb

View File

@@ -99,6 +99,9 @@ MM::Pfn::InitializePageDirectory(IN PMMPDE StartingPde,
/* Allocate a new PTE page and map PDE to it */
MM::Paging::SetPte(ValidPte, AllocateBootstrapPages(1), 0);
*StartingPde = *ValidPte;
/* Clear the newly created page */
RTL::Memory::ZeroMemory(MM::Paging::GetPteVirtualAddress(StartingPde), MM_PAGE_SIZE);
}
/* Move to the next PDE */