]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg Variable: Read MonotonicCount by ReadUnaligned64()
authorStar Zeng <star.zeng@intel.com>
Mon, 27 Jul 2015 00:49:00 +0000 (00:49 +0000)
committerlzeng14 <lzeng14@Edk2>
Mon, 27 Jul 2015 00:49:00 +0000 (00:49 +0000)
commitcdc83ccf7195c66c77b869ee62155108e39a0246
tree01c7f571700dd3e63b088b714fe5f426928f3f4b
parent88656abf1b3a690969851880ba2b134e0d144625
MdeModulePkg Variable: Read MonotonicCount by ReadUnaligned64()

As variable HEADER_ALIGNMENT = 4, the MonotonicCount in
AUTHENTICATED_VARIABLE_HEADER may be not UINT64 aligned,
so go to use ReadUnaligned64() to ensure read data correctly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18064 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableExLib.c