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 bb5f6d4..7b8bca5 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