- 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:
Aleksey Bragin 2008-03-06 09:39:36 +00:00
parent d07ce86ee0
commit ae0ebdc3eb

View file

@ -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;