ShellPkg: Add checking for memory allocation and pointer returns from functions.
signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12542 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -2249,9 +2249,7 @@ EfiShellFindFiles(
|
||||
MapName = StrnCatGrow(&MapName, NULL, PatternCopy, Count);
|
||||
if (MapName == NULL) {
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
if (!EFI_ERROR(Status)) {
|
||||
} else {
|
||||
RootDevicePath = EfiShellGetDevicePathFromFilePath(PatternCopy);
|
||||
if (RootDevicePath == NULL) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
|
Reference in New Issue
Block a user