diff options
author | qlong <qlong> | 2014-08-07 07:56:31 +0000 |
---|---|---|
committer | qlong <qlong@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-07 07:56:31 +0000 |
commit | 0e24145420fc1c4d38ca22437bec44ee32d1465b (patch) | |
tree | 30af4ddfc00a5a179c792102c557792af3d79f9e | |
parent | 86110f65ab7bcd9ce738d2bb56dff2e1373b7b1e (diff) | |
download | edk2-0e24145420fc1c4d38ca22437bec44ee32d1465b.zip edk2-0e24145420fc1c4d38ca22437bec44ee32d1465b.tar.gz edk2-0e24145420fc1c4d38ca22437bec44ee32d1465b.tar.bz2 |
Clean up code.
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
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c index bb5f6d4..7b8bca5 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c @@ -146,8 +146,8 @@ AuthenticodeVerify ( //
// Long Form of Length Encoding, only support two bytes.
//
- ContentSize = (UINTN) (*(SpcIndirectDataContent + 2));
- ContentSize = (ContentSize << 8) + (UINTN)(*(SpcIndirectDataContent + 3));
+ ContentSize = (UINTN) (*(UINT8 *)(SpcIndirectDataContent + 2));
+ ContentSize = (ContentSize << 8) + (UINTN)(*(UINT8 *)(SpcIndirectDataContent + 3));
//
// Skip the SEQUENCE Tag;
//
|