From b4f7cf8094b9ca857c4215f775ff0a4b3aaf7287 Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Thu, 16 Nov 2023 22:56:04 +0000 Subject: [PATCH] MdeModulePkg: Remove ASSERT which prevents corrupt image status from 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. --- MdeModulePkg/Core/Dxe/Image/Image.c | 1 - 1 file changed, 1 deletion(-) diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index e1587f611a..6d37be642c 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -1203,7 +1203,6 @@ CoreLoadImageCommon ( ImageIsFromFv ); if (EFI_ERROR (Status)) { - ASSERT (FALSE); return Status; }