Skip to content

Commit

Permalink
MdeModulePkg: Remove ASSERT which prevents corrupt image status from …
Browse files Browse the repository at this point in the history
…being returned

When DEBUG_RAISE is disabled then PeCoffInitializeContext within
BasePeCoffLib2 will return VOLUME_CORRUPTED for certain image errors.
These errors then hit the removed ASSERT. Without it these status codes
pass back out of gBS->LoadImage as desired.
  • Loading branch information
mikebeaton committed Nov 16, 2023
1 parent dbebb53 commit b4f7cf8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion MdeModulePkg/Core/Dxe/Image/Image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,6 @@ CoreLoadImageCommon (
ImageIsFromFv
);
if (EFI_ERROR (Status)) {
ASSERT (FALSE);
return Status;
}

Expand Down

0 comments on commit b4f7cf8

Please sign in to comment.