freebsd-dev/stand/efi
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
..
boot1 Add zstd support to the boot loader. 2020-10-12 22:19:07 +00:00
fdt stand: refactor overlay loading a little bit 2019-04-11 13:26:28 +00:00
gptboot Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
include loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
libefi loader: autoload_font will hung loader when there is no local console 2021-02-21 12:45:36 +02:00
loader stand/multiboot2: fix header length check 2021-02-23 16:05:03 +01:00
loader_4th Create a loader for each interpreter for x86 BIOS and all EFI 2018-08-14 18:44:41 +00:00
loader_lua Create a loader for each interpreter for x86 BIOS and all EFI 2018-08-14 18:44:41 +00:00
loader_simp Create a loader for each interpreter for x86 BIOS and all EFI 2018-08-14 18:44:41 +00:00
Makefile stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc Hoist EFI_TARGET and SOURCE_DATE_EPOCH up into efi/Makefile.inc 2018-07-20 05:18:03 +00:00