]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg FileExplorerLib: Fix potential Integer Overflow.
authorLiming Gao <liming.gao@intel.com>
Fri, 14 Oct 2016 06:49:54 +0000 (14:49 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 18 Oct 2016 02:01:27 +0000 (10:01 +0800)
In function 'LibAppendFileName' of 'FileExplorer.c':
"
MaxLen = (Size1 + Size2 + sizeof (CHAR16))/ sizeof (CHAR16);
"
Overflow may happen here. MaxLen might become a very small number.
This patch adds integer overflow checker.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>

No differences found