]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Source level security checked
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Feb 2009 05:16:31 +0000 (05:16 +0000)
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Feb 2009 05:16:31 +0000 (05:16 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7518 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Pei/Ppi/Ppi.c

index 556a970f8b3e6910cfe6b2e9889293220fc7c993..6feab63412f44d8d4c932145abe81e65618b0834 100644 (file)
@@ -167,7 +167,6 @@ PeiInstallPpi (
     }\r
 \r
     DEBUG((EFI_D_INFO, "Install PPI: %g\n", PpiList->Guid));\r
-    ASSERT (Index < FixedPcdGet32 (PcdPeiCoreMaxPpiSupported));\r
     PrivateData->PpiData.PpiListPtrs[Index].Ppi = (EFI_PEI_PPI_DESCRIPTOR*) PpiList;\r
     PrivateData->PpiData.PpiListEnd++;\r
 \r
@@ -254,6 +253,7 @@ PeiReInstallPpi (
   // Remove the old PPI from the database, add the new one.\r
   //\r
   DEBUG((EFI_D_INFO, "Reinstall PPI: %g\n", NewPpi->Guid));\r
+  ASSERT (Index < FixedPcdGet32 (PcdPeiCoreMaxPpiSupported));\r
   PrivateData->PpiData.PpiListPtrs[Index].Ppi = (EFI_PEI_PPI_DESCRIPTOR *) NewPpi;\r
 \r
   //\r