]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c
Apply code to avoid security warnings.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Misc / DebugImageInfo.c
index aa93e3168fc7aee356e0b9a6dbf1af423bb8efb3..6d5f5c0f896621de3f59eb039a1a9f78f7361498 100644 (file)
@@ -48,6 +48,7 @@ CoreInitializeDebugImageInfoTable (
   // See comments in the CoreUpdateDebugTableCrc32() function below for details.\r
   //\r
   mDebugTable = AllocateAlignedPages (EFI_SIZE_TO_PAGES (sizeof (EFI_SYSTEM_TABLE_POINTER)), FOUR_MEG_ALIGNMENT); \r
+  ASSERT (mDebugTable != NULL);\r
   mDebugTable->Signature = EFI_SYSTEM_TABLE_SIGNATURE;\r
   mDebugTable->EfiSystemTableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) gDxeCoreST;\r
   mDebugTable->Crc32 = 0;\r