]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SignedCapsulePkg/SystemCapsuleLib: Add ASSERT check for PCD
authorJiewen Yao <jiewen.yao@intel.com>
Thu, 22 Dec 2016 04:38:22 +0000 (12:38 +0800)
committerJiewen Yao <jiewen.yao@intel.com>
Fri, 23 Dec 2016 02:01:37 +0000 (10:01 +0800)
Add ASSERT check for PCD to avoid platform mis-configuration.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Qin Long <qin.long@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Qin Long <qin.long@intel.com>
SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c

index 27c6f4c0b4d6b256cd74eeb05dda7ff99b47124f..18205519bf3d7ffc208ea2d3012221e3ee592816 100644 (file)
@@ -415,6 +415,8 @@ ExtractAuthenticatedImage (
   } else {\r
     return FALSE;\r
   }\r
+  ASSERT (PublicKeyData != NULL);\r
+  ASSERT (PublicKeyDataLength != 0);\r
 \r
   Status = AuthenticateFmpImage(\r
              ImageAuth,\r