]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug in DxeImageVerificationLib to use the correct certificate length when verif...
authorsfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 May 2012 04:51:53 +0000 (04:51 +0000)
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 May 2012 04:51:53 +0000 (04:51 +0000)
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13364 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c

index 3e0bbe1ee4c771092fc4c9afc898ab0ffa629128..843ca2a92c23cd228df2410a1e36d46b619a33ac 100644 (file)
@@ -946,7 +946,7 @@ IsPkcsSignedDataVerifiedBySignatureList (
           //\r
           VerifyStatus = AuthenticodeVerify (\r
                            PkcsCertData->CertData,\r
-                           mSecDataDir->Size - sizeof(PkcsCertData->Hdr),\r
+                           PkcsCertData->Hdr.dwLength - sizeof(PkcsCertData->Hdr),\r
                            RootCert,\r
                            RootCertSize,\r
                            mImageDigest,\r