audk/ShellPkg
Jiaxin Wu 280f49b811 ShellPkg/TftpDynamicCommand: Fix the potential assertion and memory leak issue.
This patch is to fix the issue reported from
https://bugzilla.tianocore.org/show_bug.cgi?id=925.

DataSize variable was not assigned the value if ShellOpenFileByName returns error.
In the such a case, it should not be used to FreePages. Instead, DataSize can be
used to record the file size once DownloadFile successfully.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-07-13 13:45:04 +08:00
..
Application ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
DynamicCommand ShellPkg/TftpDynamicCommand: Fix the potential assertion and memory leak issue. 2018-07-13 13:45:04 +08:00
Include ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
Library ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
ShellPkg.dec ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
ShellPkg.dsc ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00