mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 14:08:22 +00:00
[NTOSKRNL]
* Add a sanity check to prevent a potential out-of-bounds write. CID 731662. CORE-6681 svn path=/trunk/; revision=60619
This commit is contained in:
parent
468cae26b2
commit
2e94a56a52
1 changed files with 3 additions and 0 deletions
|
@ -1236,6 +1236,9 @@ ObCreateObjectType(IN PUNICODE_STRING TypeName,
|
|||
|
||||
/* 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 */
|
||||
|
|
Loading…
Reference in a new issue