From 6c45642e2bd4cec95c9cde14668ea36c270f0559 Mon Sep 17 00:00:00 2001 From: xli24 Date: Fri, 30 Jul 2010 09:09:24 +0000 Subject: Add boundary check against APIC ID. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10757 6f19259b-4bc3-4df7-8a09-765794883524 --- .../MpServicesOnFrameworkMpServicesThunk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'EdkCompatibilityPkg') diff --git a/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c b/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c index 479362dd87..c423ec91d6 100644 --- a/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c +++ b/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c @@ -1272,6 +1272,8 @@ SendInitSipiSipi ( UINT32 VectorNumber; UINT32 DeliveryMode; + ASSERT (ApicID < MAX_CPU_NUMBER); + mExchangeInfo->ApFunction = ApFunction; mExchangeInfo->ProcessorNumber[ApicID] = (UINT32) ProcessorNumber; -- cgit v1.2.3