From e1fb441624cdb50bdf7b45afdb8071534e2cdbc3 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 23 Mar 2018 22:36:41 +0100 Subject: [PATCH] OvmfPkg/QemuVideoDxe: handle invalid BltOperation gracefully According to the UEFI spec, EFI_GRAPHICS_OUTPUT_PROTOCOL.Blt() is supposed to catch an invalid BltOperation, and report it with EFI_INVALID_PARAMETER. Remove the assertion from QemuVideoGraphicsOutputBlt() that prevents this from working in NOOPT and DEBUG builds. Cc: Ard Biesheuvel Cc: Rocky Cc: Ruiyu Ni Reported-by: Rocky Analyzed-by: Ruiyu Ni Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=897 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel Reviewed-by: Ruiyu Ni --- OvmfPkg/QemuVideoDxe/Gop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/QemuVideoDxe/Gop.c b/OvmfPkg/QemuVideoDxe/Gop.c index b479d24a87..d51efc2a83 100644 --- a/OvmfPkg/QemuVideoDxe/Gop.c +++ b/OvmfPkg/QemuVideoDxe/Gop.c @@ -366,7 +366,7 @@ Returns: default: Status = EFI_INVALID_PARAMETER; - ASSERT (FALSE); + break; } gBS->RestoreTPL (OriginalTPL); -- 2.39.2