]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Clean up code.
authorqlong <qlong>
Thu, 7 Aug 2014 07:56:31 +0000 (07:56 +0000)
committerqlong <qlong@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 7 Aug 2014 07:56:31 +0000 (07:56 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed off by: Long Qin <qin.long@intel.com>
Reviewed by: Eric Dong <eric.dong@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15768 6f19259b-4bc3-4df7-8a09-765794883524

CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c

index bb5f6d4b0d862dba66e64208d2597839bc56b3fe..7b8bca53e741154f0be5166112647f8eb4071b52 100644 (file)
@@ -146,8 +146,8 @@ AuthenticodeVerify (
     //\r
     // Long Form of Length Encoding, only support two bytes.\r
     //\r
-    ContentSize  = (UINTN) (*(SpcIndirectDataContent + 2));\r
-    ContentSize = (ContentSize << 8) + (UINTN)(*(SpcIndirectDataContent + 3));\r
+    ContentSize = (UINTN) (*(UINT8 *)(SpcIndirectDataContent + 2));\r
+    ContentSize = (ContentSize << 8) + (UINTN)(*(UINT8 *)(SpcIndirectDataContent + 3));\r
     //\r
     // Skip the SEQUENCE Tag;\r
     //\r