]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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)
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>

No differences found