audk/ShellPkg
Ruiyu Ni 7506fe43a1 ShellPkg/rm: fix hang when deleting an absolutely-empty directory
An ordinary empty directory should contain "." and ".." entries.
When an empty directory even doesn't contain "." or ".." entry,
FileHandleFindFirstFile() may return error status and a NULL
FileInfo.
IsDirectoryEmpty() implementation in Rm.c doesn't consider this
case and the deference of FileInfo->FileName causes page fault
exception because FileInfo is NULL.
The patch checks the return status of FileHandleFindFirstFile()
to fix this issue.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-02-09 12:24:55 +08:00
..
Application ShellPkg: Fix the bug that handling Ctrl-C improperly 2017-11-29 09:07:26 +08:00
DynamicCommand ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
Include ShellPkg: Rename gShellCurDir to gShellCurMapping 2017-08-30 11:42:41 +08:00
Library ShellPkg/rm: fix hang when deleting an absolutely-empty directory 2018-02-09 12:24:55 +08:00
ShellPkg.dec ShellPkg: Update package version from 1.01 to 1.02 2018-01-26 10:08:55 +08:00
ShellPkg.dsc ShellPkg: Update package version from 1.01 to 1.02 2018-01-26 10:08:55 +08:00