summaryrefslogtreecommitdiffstats
path: root/SignedCapsulePkg
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2016-12-22 12:38:22 +0800
committerJiewen Yao <jiewen.yao@intel.com>2016-12-23 10:01:37 +0800
commit7e6e4f96069464ed6ee0669e181abe7cb6801223 (patch)
treeea8ed682fe06d22515e08c8fff6947042cafb3d8 /SignedCapsulePkg
parent492c05f599f550bc9926ffd18c045916cd0ce604 (diff)
downloadedk2-7e6e4f96069464ed6ee0669e181abe7cb6801223.tar.gz
edk2-7e6e4f96069464ed6ee0669e181abe7cb6801223.tar.bz2
edk2-7e6e4f96069464ed6ee0669e181abe7cb6801223.zip
SignedCapsulePkg/SystemCapsuleLib: Add ASSERT check for PCD
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>
Diffstat (limited to 'SignedCapsulePkg')
-rw-r--r--SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c
index 27c6f4c0b4..18205519bf 100644
--- a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c
+++ b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c
@@ -415,6 +415,8 @@ ExtractAuthenticatedImage (
} else {
return FALSE;
}
+ ASSERT (PublicKeyData != NULL);
+ ASSERT (PublicKeyDataLength != 0);
Status = AuthenticateFmpImage(
ImageAuth,