mirror of https://github.com/acidanthera/audk.git
7506fe43a1
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> |
||
---|---|---|
.. | ||
Attrib.c | ||
Cd.c | ||
Cp.c | ||
Load.c | ||
Ls.c | ||
Map.c | ||
MkDir.c | ||
Mv.c | ||
Parse.c | ||
Reset.c | ||
Rm.c | ||
Set.c | ||
TimeDate.c | ||
UefiShellLevel2CommandsLib.c | ||
UefiShellLevel2CommandsLib.h | ||
UefiShellLevel2CommandsLib.inf | ||
UefiShellLevel2CommandsLib.uni | ||
Vol.c |