Author: akhaldi
Date: Fri Oct 11 19:37:29 2013
New Revision: 60619
URL: http://svn.reactos.org/svn/reactos?rev=60619&view=rev
Log:
[NTOSKRNL]
* Add a sanity check to prevent a potential out-of-bounds write. CID 731662.
CORE-6681
Modified:
trunk/reactos/ntoskrnl/ob/oblife.c
Modified: trunk/reactos/ntoskrnl/ob/oblife.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Fri Oct 11 19:37:29 2013
@@ -1236,6 +1236,9 @@
/* Set the index and the entry into the object type array */
LocalObjectType->Index = ObpTypeObjectType->TotalNumberOfObjects;
+
+ NT_ASSERT(LocalObjectType->Index != 0);
+
if (LocalObjectType->Index < 32)
{
/* It fits, insert it */