diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2016-12-22 12:38:22 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2016-12-23 10:01:37 +0800 |
commit | 7e6e4f96069464ed6ee0669e181abe7cb6801223 (patch) | |
tree | ea8ed682fe06d22515e08c8fff6947042cafb3d8 /SignedCapsulePkg | |
parent | 492c05f599f550bc9926ffd18c045916cd0ce604 (diff) | |
download | edk2-7e6e4f96069464ed6ee0669e181abe7cb6801223.zip edk2-7e6e4f96069464ed6ee0669e181abe7cb6801223.tar.gz edk2-7e6e4f96069464ed6ee0669e181abe7cb6801223.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c index 27c6f4c..1820551 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,
|