freebsd-skq/stand/efi/loader/arch
Roger Pau Monné 0eaa97f0e8 stand/multiboot2: fix header length check
Check whether we have reached the end of the buffer using search_size
instead of MULTIBOOT_SEARCH, which is the maximum defined by the
specification, but the file can be shorter than that.

This prevents printing a harmless error message when loading a file
that is smaller than MULTIBOOT_SEARCH.

Sponsored by: Citrix Systems R&D
MFC after: 3 days
Fixes: adda2797eb ('stand/multiboot2: add support for booting a Xen dom0 in UEFI mode')
2021-02-23 16:05:03 +01:00
..
amd64 stand/multiboot2: fix header length check 2021-02-23 16:05:03 +01:00
arm stand/efi: allow not exiting boot services 2021-02-16 15:26:10 +01:00
arm64 stand/efi: allow not exiting boot services 2021-02-16 15:26:10 +01:00
i386 stand/efi: allow not exiting boot services 2021-02-16 15:26:10 +01:00
riscv stand/efi: allow not exiting boot services 2021-02-16 15:26:10 +01:00