audk/ShellPkg/Library/UefiShellLevel2CommandsLib
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
..
Attrib.c
Cd.c ShellPkg/Level2Command: Use UnicodeCollation in StrinCmp 2018-01-29 09:41:48 +08:00
Cp.c ShellPkg/Level2Command: Use UnicodeCollation in StrinCmp 2018-01-29 09:41:48 +08:00
Load.c
Ls.c
Map.c ShellPkg/map: Fix out-of-bound read when "map fsn" 2018-02-06 17:31:16 +08:00
MkDir.c
Mv.c
Parse.c
Reset.c
Rm.c ShellPkg/rm: fix hang when deleting an absolutely-empty directory 2018-02-09 12:24:55 +08:00
Set.c
TimeDate.c ShellPkg/Level2Command: Use UnicodeCollation in StrinCmp 2018-01-29 09:41:48 +08:00
UefiShellLevel2CommandsLib.c ShellPkg/Level2Command: Use UnicodeCollation in StrinCmp 2018-01-29 09:41:48 +08:00
UefiShellLevel2CommandsLib.h ShellPkg/Level2Command: Use UnicodeCollation in StrinCmp 2018-01-29 09:41:48 +08:00
UefiShellLevel2CommandsLib.inf
UefiShellLevel2CommandsLib.uni
Vol.c