audk/IntelFrameworkModulePkg/Universal
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
..
Acpi
BdsDxe IntelFrameworkModulePkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:04 +08:00
Console/VgaClassDxe IntelFrameworkModulePkg: Fix typos in comments 2016-10-24 09:09:06 +08:00
CpuIoDxe IntelFrameworkModulePkg: Refine casting expression result to bigger size 2017-03-06 14:33:22 +08:00
DataHubDxe IntelFrameworkModulePkg: Fix typos in comments 2016-10-24 09:09:06 +08:00
DataHubStdErrDxe IntelFrameworkModulePkg: Fix typos in comments 2016-10-24 09:09:06 +08:00
FirmwareVolume IntelFrameworkModulePkg FwVolDxe: Get FV auth status propagated from PEI 2017-10-10 20:54:46 +08:00
LegacyRegionDxe
SectionExtractionDxe IntelFrameworkModulePkg: Fix typos in comments 2016-07-11 10:29:48 +08:00
StatusCode IntelFrameworkModulePkg StatusCode RuntimeDxe: Remove duplicated structure. 2016-06-30 11:22:52 +08:00