[ros-diffs] [sir_richard] 49433: [NTOS]: Make sure we don't get a user-pointer back from MmMapInSystemSpace.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Tue Nov 2 14:40:32 UTC 2010


Author: sir_richard
Date: Tue Nov  2 14:40:31 2010
New Revision: 49433

URL: http://svn.reactos.org/svn/reactos?rev=49433&view=rev
Log:
[NTOS]: Make sure we don't get a user-pointer back from MmMapInSystemSpace.

Modified:
    trunk/reactos/ntoskrnl/ex/init.c

Modified: trunk/reactos/ntoskrnl/ex/init.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/init.c?rev=49433&r1=49432&r2=49433&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] Tue Nov  2 14:40:31 2010
@@ -329,6 +329,7 @@
     }
 
     /* Copy the codepage data in its new location. */
+    ASSERT(SectionBase > MmSystemRangeStart);
     RtlCopyMemory(SectionBase, ExpNlsTableBase, ExpNlsTableSize);
 
     /* Free the previously allocated buffer and set the new location */




More information about the Ros-diffs mailing list