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 Report the setting variable failure to platform through the status code when core cannot handle the error. 2014-03-25 02:38:54 +00:00
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 Enable UEFI firmware to support FMP capsule format. 2013-10-15 01:31:49 +00:00
FrontPage.c IntelFrameworkModulePkg: Refine casting expression result to bigger size 2017-03-06 14:33:22 +08:00
FrontPage.h 1. Fix a bug when comparing two timestamp in auth-variable driver. 2012-09-14 02:59:35 +00:00
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 Rollback the change to EFI_BOOT_KEY_DATA structure since UEFI Spec adds the clarification that bitfields are ordered such that bit 0 is the least significant bit. 2013-12-18 05:51:22 +00:00
HwErrRecSupport.c Follow UEFI spec, set TimeOut and HwErrRecSupport variable by EFI variable service instead of PcdSet(). 2013-03-05 12:20:53 +00:00
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