diff options
author | Gao, Zhichao <zhichao.gao@intel.com> | 2019-08-12 08:36:21 -0700 |
---|---|---|
committer | Jaben Carsey <jaben.carsey@intel.com> | 2019-08-12 19:51:36 -0700 |
commit | 12dcad5b1ec58eb33c351854ae37942b996ed2e5 (patch) | |
tree | 6b14ca6d36284ed4a2c9dfcfe98037179a282cf5 /.gitmodules | |
parent | 48d5d6d5e09e5089d1c95c2d0812449e87f4ef7e (diff) | |
download | edk2-12dcad5b1ec58eb33c351854ae37942b996ed2e5.zip edk2-12dcad5b1ec58eb33c351854ae37942b996ed2e5.tar.gz edk2-12dcad5b1ec58eb33c351854ae37942b996ed2e5.tar.bz2 |
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>
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions