audk/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr
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
..
DeviceManager.c IntelFrameworkModulePkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:04 +08:00
DeviceManager.h Correct a typo: Change the type of the 4th parameter of EFI_DRIVER_HEALTH_PROTOCOL::Repair() from EFI_DRIVER_HEALTH_REPAIR_PROGRESS_NOTIFY to EFI_DRIVER_HEALTH_REPAIR_NOTIFY to follow the UEFI spec. 2013-10-14 02:02:02 +00:00
DeviceManagerStrings.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00
DeviceManagerVfr.Vfr Remove Framework HII "class\subclass" in all VFR 2015-05-21 07:58:12 +00:00
DeviceManagerVfr.h
DriverHealthVfr.Vfr