mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
- Allocate buffer for sub keys from NonPagedPool in order to prevent crashes in CmiAddKeyToList where the buffer is accessed at DISPATCH_LEVEL.
svn path=/trunk/; revision=11722
This commit is contained in:
parent
a4efd45e84
commit
c7802eb216
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: registry.c,v 1.127 2004/10/22 20:14:04 ekohl Exp $
|
/* $Id: registry.c,v 1.128 2004/11/20 21:14:16 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -642,7 +642,7 @@ CmiConnectHive(IN POBJECT_ATTRIBUTES KeyObjectAttributes,
|
||||||
NewKey->NumberOfSubKeys = 0;
|
NewKey->NumberOfSubKeys = 0;
|
||||||
if (NewKey->KeyCell->NumberOfSubKeys != 0)
|
if (NewKey->KeyCell->NumberOfSubKeys != 0)
|
||||||
{
|
{
|
||||||
NewKey->SubKeys = ExAllocatePool(PagedPool,
|
NewKey->SubKeys = ExAllocatePool(NonPagedPool,
|
||||||
NewKey->KeyCell->NumberOfSubKeys * sizeof(ULONG));
|
NewKey->KeyCell->NumberOfSubKeys * sizeof(ULONG));
|
||||||
if (NewKey->SubKeys == NULL)
|
if (NewKey->SubKeys == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue