mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 12:01:55 +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:
parent
d07ce86ee0
commit
ae0ebdc3eb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue