From: Laszlo Ersek Date: Fri, 23 Mar 2018 21:36:41 +0000 (+0100) Subject: OvmfPkg/QemuVideoDxe: handle invalid BltOperation gracefully X-Git-Tag: edk2-stable201903~2046 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e1fb441624cdb50bdf7b45afdb8071534e2cdbc3;hp=d9885abf80c3bcabea4aafe6c36a79e17c04ea66 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 --- 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);