mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[NTOSKRNL]
Fix a serious bug, where NtAllocateVirtualMemory could allocate memory user mode memory above MmHighestUserAddress up to MmSystemRangeStart - 1, which is a no-access area. svn path=/trunk/; revision=50917
This commit is contained in:
@@ -458,7 +458,7 @@ MmFindGapBottomUp(
|
||||
{
|
||||
PVOID LowestAddress = MmGetAddressSpaceOwner(AddressSpace) ? MM_LOWEST_USER_ADDRESS : MmSystemRangeStart;
|
||||
PVOID HighestAddress = MmGetAddressSpaceOwner(AddressSpace) ?
|
||||
(PVOID)((ULONG_PTR)MmSystemRangeStart - 1) : (PVOID)MAXULONG_PTR;
|
||||
MmHighestUserAddress : (PVOID)MAXULONG_PTR;
|
||||
PVOID AlignedAddress;
|
||||
PMEMORY_AREA Node;
|
||||
PMEMORY_AREA FirstNode;
|
||||
|
||||
Reference in New Issue
Block a user