Skip to content
Commit f8e6bcb6 authored by Bret Barkelew's avatar Bret Barkelew Committed by mergify[bot]
Browse files

MdeModulePkg: Initialize temp variable in VarCheckPolicyLib

DumpVariablePolicy() will return EFI_INVALID_PARAMETER if the Buffer
pointer is NULL and the indirect Size is anything but 0. Since this
TempSize was not being initialized it is very likely that this sequence
would not return the total buffer size as expected.

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=3310



Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: default avatarBret Barkelew <bret.barkelew@microsoft.com>
Reviewed-by: default avatarHao A Wu <hao.a.wu@intel.com>
Reviewed-by: default avatarLiming Gao <gaoliming@byosoft.com.cn>
parent 4b59b22f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment