]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg: Correct data copy in Tpm2NvReadPublic.
authorYao, Jiewen <jiewen.yao@intel.com>
Wed, 27 Jan 2016 12:16:47 +0000 (12:16 +0000)
committerjyao1 <jyao1@Edk2>
Wed, 27 Jan 2016 12:16:47 +0000 (12:16 +0000)
commitb1b1d6469964b61e710b08f25cbf01a7156d2ea5
treec7ef06e962856ad37c0c8ad8e9d2a1b1602bdf9f
parente4780913e5a2c0699f368a79ca3ff1c951053e88
SecurityPkg: Correct data copy in Tpm2NvReadPublic.

1) NvPublic.dataSize data should be got from original
receive buffer, instead of returned NvPublic.

2) NvNameSize means the size of NvName without size field.
The original code treats it to be size of NvName with size
field, so the last 2 bytes are missing.

This patch fixed problem.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19756 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/Library/Tpm2CommandLib/Tpm2NVStorage.c