]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Variable/Pei/Variable.c
MdeModulePkg/Variable/Pei: Update the condition in if statement
authorShenglei Zhang <shenglei.zhang@intel.com>
Tue, 15 Oct 2019 06:45:44 +0000 (14:45 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 4 Nov 2019 00:54:24 +0000 (08:54 +0800)
commit121955fd4f9a2a5da7e0e8fe0c47ad5570f18d32
tree530082c838dffcd044bc1484fd72a47367f6140f
parent2b23beb043a10dd3c00f43c1f7bb72f47554ff3a
MdeModulePkg/Variable/Pei: Update the condition in if statement

IndexTable->Length is used as index in array IndexTable->Index[].
So IndexTable->Length needs to be checked, which should be less than
the array size.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Universal/Variable/Pei/Variable.c