audk/IntelFrameworkModulePkg
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
..
Bus IntelFrameworkModulePkg: Update comments in SimpleTextInEx 2017-06-20 09:29:41 +08:00
Csm IntelFrameworkModule/LegacyBios: Avoid explicit comparison for BOOLEAN 2017-10-24 09:14:17 +08:00
Include IntelFrameworkModulePkg: Fix typos in comments 2016-10-24 09:09:06 +08:00
Library IntelFrameworkModulePkg/LegacyBootMaintUiLib: Add NULL pointer check 2017-08-28 15:13:50 +08:00
Universal IntelFrameworkModulePkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:04 +08:00
IntelFrameworkModulePkg.dec IntelFrameworkModulePkg: Remove unused PCD/Protocol 2016-04-13 14:54:49 +08:00
IntelFrameworkModulePkg.dsc IntelFrameworkModulePkg DSC: Add build option to disable deprecated APIs 2016-08-08 11:00:04 +08:00
IntelFrameworkModulePkg.uni IntelFrameworkModulePkg AcpiS3SaveDxe: Remove S3Ready() functional code 2016-04-07 17:32:03 +02:00
IntelFrameworkModulePkgExtra.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00