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
BdsDxeExtra.uni
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
FrontPageVfr.Vfr
Hotkey.c
Hotkey.h
HwErrRecSupport.c
HwErrRecSupport.h
Language.c
Language.h
MemoryTest.c IntelFrameworkModulePkg: Replace [Ascii|Unicode]ValueToString 2017-03-02 09:57:54 +08:00
String.c
String.h
Strings.uni