summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-13 03:57:46 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-13 03:57:46 +0000
commite67ca95c86f8eb94352563d4efab2449656ffff0 (patch)
treeeb54dd59884e631fe88f99926e2491cc34114969 /MdeModulePkg/Core
parentdb0bd81c851ff0aa92f2778f7810488714c059c2 (diff)
downloadedk2-platforms-e67ca95c86f8eb94352563d4efab2449656ffff0.tar.xz
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7517 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c1
-rw-r--r--MdeModulePkg/Core/Pei/Ppi/Ppi.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index 3103fac037..db1fe4bc84 100644
--- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
@@ -632,6 +632,7 @@ PeiDispatcher (
// We call the entry point a 2nd time so the module knows it's shadowed.
//
//PERF_START (PeiServices, L"PEIM", PeimFileHandle, 0);
+ ASSERT (PeimEntryPoint != NULL);
PeimEntryPoint (PeimFileHandle, (const EFI_PEI_SERVICES **) PeiServices);
//PERF_END (PeiServices, L"PEIM", PeimFileHandle, 0);
diff --git a/MdeModulePkg/Core/Pei/Ppi/Ppi.c b/MdeModulePkg/Core/Pei/Ppi/Ppi.c
index a0780c7838..556a970f8b 100644
--- a/MdeModulePkg/Core/Pei/Ppi/Ppi.c
+++ b/MdeModulePkg/Core/Pei/Ppi/Ppi.c
@@ -167,6 +167,7 @@ PeiInstallPpi (
}
DEBUG((EFI_D_INFO, "Install PPI: %g\n", PpiList->Guid));
+ ASSERT (Index < FixedPcdGet32 (PcdPeiCoreMaxPpiSupported));
PrivateData->PpiData.PpiListPtrs[Index].Ppi = (EFI_PEI_PPI_DESCRIPTOR*) PpiList;
PrivateData->PpiData.PpiListEnd++;