From 2fead09fae17666cf82bcfeb38425af3adcbe646 Mon Sep 17 00:00:00 2001 From: jji4 Date: Fri, 13 Feb 2009 05:16:31 +0000 Subject: [PATCH] Source level security checked git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7518 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Pei/Ppi/Ppi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/Ppi/Ppi.c b/MdeModulePkg/Core/Pei/Ppi/Ppi.c index 556a970f8b..6feab63412 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; // -- 2.39.2