Author: tfaber
Date: Tue Aug 9 07:43:51 2016
New Revision: 72162
URL:
http://svn.reactos.org/svn/reactos?rev=72162&view=rev
Log:
[NTOS:MM]
- Accept memory areas that end at 0xffffffff
CORE-11533
Modified:
trunk/reactos/ntoskrnl/mm/marea.c
Modified: trunk/reactos/ntoskrnl/mm/marea.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/marea.c?rev=72…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] Tue Aug 9 07:43:51 2016
@@ -175,7 +175,7 @@
marea->VadNode.u.VadFlags.Protection = MiMakeProtectionMask(marea->Protect);
/* Build a lame VAD if this is a user-space allocation */
- if (MA_GetEndingAddress(marea) < (ULONG_PTR)MmSystemRangeStart)
+ if (marea->EndingVpn + 1 < (ULONG_PTR)MmSystemRangeStart >> PAGE_SHIFT)
{
ASSERT(Process != NULL);
if (marea->Type != MEMORY_AREA_OWNED_BY_ARM3)
@@ -360,7 +360,7 @@
//if (MemoryArea->VadNode.StartingVpn < (ULONG_PTR)MmSystemRangeStart
>> PAGE_SHIFT
if (MemoryArea->Vad)
{
- ASSERT(MA_GetEndingAddress(MemoryArea) < (ULONG_PTR)MmSystemRangeStart);
+ ASSERT(MemoryArea->EndingVpn + 1 < (ULONG_PTR)MmSystemRangeStart
>> PAGE_SHIFT);
ASSERT(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW || MemoryArea->Type
== MEMORY_AREA_CACHE);
/* MmCleanProcessAddressSpace might have removed it (and this would be
MmDeleteProcessAdressSpace) */