u-boot/arch/x86
Simon Glass 4099df48a6 x86: Correct copying of BIOS mode information
This is copying beyond the end of the destination buffer. Correct the code
by using the size of the  vesa_mode_info struct. We don't need to copy the
rest of the bytes in the buffer.

This long-standing bug prevents virtio bootdevs working correctly on
qemu-x86 at present.

Fixes: 0ca2426bea ("x86: Add support for running option ROMs natively")
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com> # qemu-x86_64
2023-08-09 23:31:11 +08:00
..
cpu Revert "x86: Switch QEMU over to use the bochs driver" 2023-08-09 23:31:11 +08:00
dts x86: link: Support Micron memory 2023-07-17 17:23:15 +08:00
include/asm x86: Run QEMU machine setup in SPL 2023-08-09 23:31:11 +08:00
lib x86: Correct copying of BIOS mode information 2023-08-09 23:31:11 +08:00
config.mk x86: Pass -z execstack for EFI payload flags 2023-02-23 13:29:20 -05:00
Kconfig efi: Set RUN_64BIT correctly for the EFI app 2023-03-25 11:07:21 +01:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00