mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NTOS/MM]
- Fix check for address range fitting the VAD when commiting memory CORE-7065 #comment Should be fixed with r58627 #resolve svn path=/trunk/; revision=58727
This commit is contained in:
@@ -4081,7 +4081,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||
//
|
||||
// Make sure that this address range actually fits within the VAD for it
|
||||
//
|
||||
if (((StartingAddress >> PAGE_SHIFT) < FoundVad->StartingVpn) &&
|
||||
if (((StartingAddress >> PAGE_SHIFT) < FoundVad->StartingVpn) ||
|
||||
((EndingAddress >> PAGE_SHIFT) > FoundVad->EndingVpn))
|
||||
{
|
||||
DPRINT1("Address range does not fit into the VAD\n");
|
||||
|
||||
Reference in New Issue
Block a user