audk/ShellPkg/Library
Jian J Wang 2a6ede28fd ShellPkg: 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: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@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: Ruiyu Ni <ruiyu.ni@intel.com>
2017-11-08 17:13:04 +08:00
..
UefiDpLib ShellPkg UefiDpLib: Init CustomCumulativeData.MinDur 2017-08-14 16:55:52 +08:00
UefiHandleParsingLib ShellPkg/dh: Fix wrong output when dumping PciRootBridgeIo 2017-11-08 13:06:16 +08:00
UefiShellBcfgCommandLib ShellPkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:04 +08:00
UefiShellCEntryLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellCommandLib ShellPkg: Fix bug that fails to change CWD after "map -r". 2017-08-30 11:42:49 +08:00
UefiShellDebug1CommandsLib ShellPkg/HexEdit: Fix EBC build failure 2017-11-07 10:17:28 +08:00
UefiShellDriver1CommandsLib ShellPkg/disconnect: '-r' is not optional when disconnecting all 2017-09-29 15:19:10 +08:00
UefiShellInstall1CommandsLib Revert "ShellPkg : Add UEFI_APPLICATION module type to UefiShellInstall1CommandsLib.inf" 2016-01-06 16:23:20 +00:00
UefiShellLevel1CommandsLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
UefiShellLevel2CommandsLib ShellPkg/mkdir: support creating nested directories 2017-08-21 10:42:39 +08:00
UefiShellLevel3CommandsLib ShellPkg/alias: Fix flag parsing logic 2017-10-20 12:54:36 +08:00
UefiShellLib ShellPkg/UefiShellLib: Use a more bright blue/green color 2017-10-17 09:59:50 +08:00
UefiShellNetwork1CommandsLib Ifconfig : Fixed False information about Media State. 2017-10-13 17:14:50 +08:00
UefiShellNetwork2CommandsLib ShellPkg/Ifconfig6: Update error message and add a new line 2017-09-12 16:41:08 +08:00
UefiShellTftpCommandLib TFTP : tftp fix for full volume case 2017-10-24 13:48:48 +08:00