]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg Tcg2Dxe: ASSERT to ensure 'VarData' is not NULL
authorHao Wu <hao.a.wu@intel.com>
Mon, 21 Nov 2016 07:38:11 +0000 (15:38 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 22 Nov 2016 08:31:58 +0000 (16:31 +0800)
commit36e9e3e8ea0ce477504b6d2e21603ea94847efae
tree8c21409713f2a809db237f2db90a8f52330fb66a
parenta8bcbf9c4d677c392e24893b86944e2cdeb8719e
SecurityPkg Tcg2Dxe: ASSERT to ensure 'VarData' is not NULL

The logic in functions ReadAndMeasureVariable() and MeasureVariable()
within Tcg2Dxe ensure that 'VarData' will not be NULL before calling
TcgDxeHashLogExtendEvent() at line 1716.

This commit adds ASSERT as warnings for the case that will not happen.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c