audk/MdeModulePkg/Application/UiApp
Jian J Wang 469293f8ee MdeModulePkg: 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: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@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: Star Zeng <star.zeng@intel.com>
Reviewed-by: Bi Dandan <dandan.bi@intel.com>
2017-11-08 17:13:03 +08:00
..
FrontPage.c MdeModulePkg: Refine casting expression result to bigger size 2017-03-06 14:33:20 +08:00
FrontPage.h MdeModulePkg/UiApp: Connect all devices in UiApp if needed 2016-06-21 12:33:47 +08:00
FrontPageCustomizedUi.c MdeModulePkg/UiApp: Show test key warning info in FrontPage. 2016-11-08 22:37:08 +08:00
FrontPageCustomizedUi.h MdeModulePkg UiApp: change code for easy customization. 2016-05-13 11:18:13 +08:00
FrontPageCustomizedUiSupport.c MdeModulePkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:03 +08:00
FrontPageCustomizedUiSupport.h MdeModulePkg: Make function comments and function match in UI codes 2016-05-25 16:35:36 +08:00
FrontPageStrings.uni MdeModulePkg/UiApp: Show test key warning info in FrontPage. 2016-11-08 22:37:08 +08:00
FrontPageVfr.Vfr MdeModulePkg UiApp: change code for easy customization. 2016-05-13 11:18:13 +08:00
String.c MdeModulePkg UiApp: change code for easy customization. 2016-05-13 11:18:13 +08:00
String.h MdeModulePkg UiApp: change code for easy customization. 2016-05-13 11:18:13 +08:00
Ui.h
UiApp.inf MdeModulePkg/UiApp: Show test key warning info in FrontPage. 2016-11-08 22:37:08 +08:00
UiApp.uni
UiAppExtra.uni