]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SetupBrowserDxe: ASSERT GetBufferForValue(&Value)
authorShenglei Zhang <shenglei.zhang@intel.com>
Tue, 15 Oct 2019 03:36:34 +0000 (11:36 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 6 Nov 2019 05:26:21 +0000 (13:26 +0800)
commit0c1541d457832d3f68158cf61d21c30fe32bb885
treec1e6af62abda51107e825284b03083491f7f3c5b
parent3fb7e094efc87c46fffb2d755183bbe70da09396
MdeModulePkg/SetupBrowserDxe: ASSERT GetBufferForValue(&Value)

Before called by GetBufferForValue(), Value has already been called
function IsTypeInBuffer to make sure the value must be buffer type.
So GetBufferForValue can not return NULL.
This commit adds ASSERT to assume (GetBufferForValue (&Value) is not
NULL.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Universal/SetupBrowserDxe/Expression.c