audk/IntelFrameworkModulePkg/Universal/BdsDxe
Jian J Wang 5df73e2cc8 IntelFrameworkModulePkg: Fix misuses of AllocateCopyPool
AllocateCopyPool(AllocationSize, *Buffer) will copy "AllocationSize" bytes of
memory from old "Buffer" to new allocated one. If "AllocationSize" is bigger
than size of "Buffer", heap memory overflow occurs during copy.

One solution is to allocate pool first then copy the necessary bytes to new
memory. Another is using ReallocatePool instead if old buffer will be freed
on spot.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Bi Dandan <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Bi Dandan <dandan.bi@intel.com>
2017-11-08 17:13:04 +08:00
..
BootMaint IntelFrameworkModulePkg: Refine type cast for pointer subtraction 2017-03-06 14:14:46 +08:00
BootMngr IntelFrameworkModulePkg/BdsDxe: rebase to ARRAY_SIZE() 2016-10-27 11:10:55 +02:00
DeviceMngr IntelFrameworkModulePkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:04 +08:00
Bds.h
BdsDxe.inf IntelFrameworkModulePkg: Correct the usage of gPerformanceProtocolGuid in inf 2016-06-12 12:56:23 +08:00
BdsDxe.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00
BdsDxeExtra.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00
BdsEntry.c IntelFrameworkModulePkg: Use EfiEventEmptyFunction from UefiLib 2017-01-20 15:55:32 +08:00
Capsules.c
FrontPage.c IntelFrameworkModulePkg: Refine casting expression result to bigger size 2017-03-06 14:33:22 +08:00
FrontPage.h
FrontPageStrings.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00
FrontPageVfr.Vfr EDKII:Display engine should not depend on the framework code 2015-06-09 05:09:50 +00:00
Hotkey.c Correct the convert hex string to decimal value logic. 2014-09-22 05:37:16 +00:00
Hotkey.h
HwErrRecSupport.c
HwErrRecSupport.h
Language.c Add check to avoid null pointer deference. 2014-03-28 02:50:47 +00:00
Language.h
MemoryTest.c IntelFrameworkModulePkg: Replace [Ascii|Unicode]ValueToString 2017-03-02 09:57:54 +08:00
String.c
String.h
Strings.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00