mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
- Our precious kernel should be handled with love and care, with thorough check of every change going in! Not with "commit-and-forget" fashion.
- MmSecureVirtualMemory fails in case of Length = 0 too. svn path=/trunk/; revision=32579
This commit is contained in:
@@ -963,7 +963,7 @@ MmSecureVirtualMemory(PVOID Address,
|
||||
ULONG Mode)
|
||||
{
|
||||
/* Only works for user space */
|
||||
if (((ULONG_PTR)Address > (ULONG_PTR)Address + Length) ||
|
||||
if (((ULONG_PTR)Address >= (ULONG_PTR)Address + Length) ||
|
||||
((ULONG_PTR)MmHighestUserAddress < (ULONG_PTR)Address + Length))
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user