Check the integrity of the capsule name capsule.\r
If the capsule is vaild, return the physical address of each capsule name string.\r
\r
+ This routine assumes the capsule has been validated by IsValidCapsuleHeader(), so\r
+ capsule memory overflow is not going to happen in this routine.\r
+\r
@param[in] CapsuleHeader Pointer to the capsule header of a capsule name capsule.\r
@param[out] CapsuleNameNum Number of capsule name.\r
\r
//\r
if (((UINTN) CapsuleNameBufStart & BIT0) != 0) {\r
CapsuleNameBufStart = AllocateCopyPool (CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize, CapsuleNameBufStart);\r
+ if (CapsuleNameBufStart == NULL) {\r
+ return NULL;\r
+ }\r
}\r
\r
CapsuleNameBufEnd = CapsuleNameBufStart + CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize;\r