- Fix out-of-bounds access, spotted by Christoph & GCC 4.3.0.

svn path=/trunk/; revision=31990
This commit is contained in:
Aleksey Bragin 2008-01-25 14:08:11 +00:00
parent 3ddd95ec4d
commit 57da0f7d20
2 changed files with 2 additions and 2 deletions

View file

@ -446,7 +446,7 @@ CmpInitializeMachineDependentConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBloc
}
/* Null-terminate it */
CpuString[48] = ANSI_NULL;
CpuString[47] = ANSI_NULL;
}
}

View file

@ -368,7 +368,7 @@ typedef struct _CM_USE_COUNT_LOG
typedef struct _CMHIVE
{
HHIVE Hive;
HANDLE FileHandles[3];
HANDLE FileHandles[HFILE_TYPE_MAX];
LIST_ENTRY NotifyList;
LIST_ENTRY HiveList;
EX_PUSH_LOCK HiveLock;