Calculate enough space for 2 variables (public key and variable data) instead of...
authorDong Guo <guo.dong@intel.com>
Thu, 27 Mar 2014 10:54:23 +0000 (10:54 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 27 Mar 2014 10:54:23 +0000 (10:54 +0000)
commit9a12e5825aa338f9a81fca3d451bb032fadaad33
treedd4c7aaa9ffd5fe99cb331e407482ffb8b7efdcb
parent2c775600d5131cd9b55552f938750c7bdb36c478
Calculate enough space for 2 variables (public key and variable data) instead of directly setting them 1 by 1.
Fixed a bug in public key reclaim().

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