summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-13 05:16:31 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-13 05:16:31 +0000
commit2fead09fae17666cf82bcfeb38425af3adcbe646 (patch)
tree92f8236e06fd8c42b72182f8fa3ba25731b56fb6
parente67ca95c86f8eb94352563d4efab2449656ffff0 (diff)
downloadedk2-2fead09fae17666cf82bcfeb38425af3adcbe646.zip
edk2-2fead09fae17666cf82bcfeb38425af3adcbe646.tar.gz
edk2-2fead09fae17666cf82bcfeb38425af3adcbe646.tar.bz2
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7518 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Core/Pei/Ppi/Ppi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Pei/Ppi/Ppi.c b/MdeModulePkg/Core/Pei/Ppi/Ppi.c
index 556a970..6feab63 100644
--- a/MdeModulePkg/Core/Pei/Ppi/Ppi.c
+++ b/MdeModulePkg/Core/Pei/Ppi/Ppi.c
@@ -167,7 +167,6 @@ 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++;
@@ -254,6 +253,7 @@ PeiReInstallPpi (
// Remove the old PPI from the database, add the new one.
//
DEBUG((EFI_D_INFO, "Reinstall PPI: %g\n", NewPpi->Guid));
+ ASSERT (Index < FixedPcdGet32 (PcdPeiCoreMaxPpiSupported));
PrivateData->PpiData.PpiListPtrs[Index].Ppi = (EFI_PEI_PPI_DESCRIPTOR *) NewPpi;
//