]> git.proxmox.com Git - mirror_edk2.git/commit
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)
commitaaba2a44c24e8c688343bda15e915be9ae24056c
tree87182cce2b992d2f15b8cbcbb6284ce64c95a247
parent9ba2869c7ec7567eabc15fe4c2b13d8c774ce282
MdeModulePkg FileExplorerLib: Fix potential Integer Overflow.

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>
MdeModulePkg/Library/FileExplorerLib/FileExplorer.c