DxeCore: Enforce FV/NON_FV source check

There was a bool bug in an earlier version, which unfortunately inverted
the sense of this check, but the correct (and secure) fix is to continue
to enforce the check, using the enum valuues.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
This commit is contained in:
Mike Beaton 2024-04-22 07:38:55 +01:00
parent d2e7bf7f0e
commit bb321e039a
1 changed files with 1 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ CoreLoadImageCommon (
&ImageContext,
FHand.Source,
(UINT32) FHand.SourceSize,
UEFI_IMAGE_SOURCE_FV,
ImageIsFromFv ? UEFI_IMAGE_SOURCE_FV : UEFI_IMAGE_SOURCE_NON_FV,
ImageOrigin
);
if (EFI_ERROR (Status)) {