]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/QemuVideoDxe/Gop.c
OvmfPkg/QemuVideoDxe: handle invalid BltOperation gracefully
authorLaszlo Ersek <lersek@redhat.com>
Fri, 23 Mar 2018 21:36:41 +0000 (22:36 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 26 Mar 2018 14:59:47 +0000 (16:59 +0200)
commite1fb441624cdb50bdf7b45afdb8071534e2cdbc3
tree3401640d75d71fb20342e502d82cda736b3af33b
parentd9885abf80c3bcabea4aafe6c36a79e17c04ea66
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 <ard.biesheuvel@linaro.org>
Cc: Rocky <xingrong.ni@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Reported-by: Rocky <xingrong.ni@intel.com>
Analyzed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=897
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
OvmfPkg/QemuVideoDxe/Gop.c