audk/ShellPkg
Gao, Zhichao 12dcad5b1e ShellPkg/UefiShellLevel2CommansLib: Pointer Resonse should be checked
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2049

ShellPkg\Library\UefiShellLevel2CommandsLib\Cp.c line 104 and
ShellPkg\Library\UefiShellLevel2CommandsLib\Mv.c line 640, the
pointer variable Response may be a NULL pointer. So we should
make sure that it isn't NULL before dereference it.

If Response is NULL that indicates a EFI_OUT_OF_RESOURCES
error, directly return SHELL_ABORTED.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2019-08-12 19:51:36 -07:00
..
Application ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
DynamicCommand ShellPkg: Add NetworkPkg/NetworkPkg.dec as the package dependency 2019-05-21 10:35:15 +08:00
Include ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Library ShellPkg/UefiShellLevel2CommansLib: Pointer Resonse should be checked 2019-08-12 19:51:36 -07:00
ShellPkg.dec ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
ShellPkg.dsc ShellPkg: Add shell with all commands integrated 2019-08-05 14:18:16 -07:00