]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Do NULL pointer check before the pointer is used.
authorQiu Shumin <shumin.qiu@intel.com>
Tue, 16 Feb 2016 01:49:05 +0000 (09:49 +0800)
committerQiu Shumin <shumin.qiu@intel.com>
Thu, 18 Feb 2016 06:00:57 +0000 (14:00 +0800)
commit9eec4d38c027e9eb95c545875a1f847f0cb3dcbf
tree0f7150bb19a0b00f1490101127b8efb57cba5d04
parent3700da73846e10853ed95010d7ad2f0b9135439f
ShellPkg: Do NULL pointer check before the pointer is used.

The pointer 'FileInterface->Buffer' returned from 'AllocateZeroPool' in function
'CreateFileInterfaceMem' may be NULL and will be dereferenced at the following code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Application/Shell/FileHandleWrappers.c