diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-01 09:50:10 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-01 09:50:10 +0000 |
commit | 45590862bef494f0bd662ec48310843842eb9511 (patch) | |
tree | e1d6dec45ea36cac1aa0b7c3bac6a866699add4f /EdkCompatibilityPkg/Compatibility | |
parent | ccf0f68d732b9f1f9e8d78bc7d6a040d1ef90bc4 (diff) | |
download | edk2-platforms-45590862bef494f0bd662ec48310843842eb9511.tar.xz |
Add parameter checking for MP Services Protocol Thunk driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10147 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c b/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c index b31d17c47f..9005670bae 100644 --- a/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c +++ b/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c @@ -899,6 +899,7 @@ CheckThisAP ( CPU_STATE CpuState;
ASSERT (ProcessorNumber < mNumberOfProcessors);
+ ASSERT (ProcessorNumber < MAX_CPU_NUMBER);
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
@@ -1220,6 +1221,7 @@ WakeUpAp ( EFI_PROCESSOR_INFORMATION ProcessorInfoBuffer;
ASSERT (ProcessorNumber < mNumberOfProcessors);
+ ASSERT (ProcessorNumber < MAX_CPU_NUMBER);
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
@@ -1300,6 +1302,7 @@ ChangeCpuState ( CPU_DATA_BLOCK *CpuData;
ASSERT (ProcessorNumber < mNumberOfProcessors);
+ ASSERT (ProcessorNumber < MAX_CPU_NUMBER);
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|