]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/VarCheckHii: Update data type for variable "ArrayIndex"
authorBi, Dandan <dandan.bi@intel.com>
Tue, 9 Jan 2018 07:24:44 +0000 (15:24 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 10 Jan 2018 04:43:20 +0000 (12:43 +0800)
commit427b2f41a6e21140fde1ccd900ed228de672ce33
tree53389e03b30057117a1db9d69db78f41b5908c88
parent2117989c262d132ace1da033046883a9086f6eac
MdeModulePkg/VarCheckHii: Update data type for variable "ArrayIndex"

In some case the ArrayIndex with UINT16 may be not large enough to
hold the multiplication result of HiiQuestion->VarOffset * 8;
So this patch update the data type to fix this potential issue.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGen.c