audk/ShellPkg/Library/UefiShellTftpCommandLib
Meenakshi Aggarwal 34cd44d4de TFTP : tftp fix for full volume case
Issue :
When storage media is full, tftp was resulting in ASSERT
MdeModulePkg/Core/Dxe/Mem/Page.c, because number of pages
was zero.

Reason:
While doing tftp, function call ShellWriteFile was modifying
FileSize variable. In case of full disk it was coming out to be
Zero.

Fix:
Storage the original filesize in local variable, and use this
variable while freeing the pages.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2017-10-24 13:48:48 +08:00
..
Tftp.c TFTP : tftp fix for full volume case 2017-10-24 13:48:48 +08:00
UefiShellTftpCommandLib.c
UefiShellTftpCommandLib.h ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
UefiShellTftpCommandLib.inf ShellPkg: use UEFI_APPLICATION module type for Shell components 2015-08-25 14:54:36 +00:00
UefiShellTftpCommandLib.uni ShellPkg/UefiShellTftpCommandLib: Update TFTP help text 2016-10-12 14:08:20 -07:00