freebsd-skq/stand
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
..
arm Remove obsolete code gated on _ARM_ARCH_* 2021-01-28 10:41:45 +00:00
arm64
common loader: do not autoselect smaller font than 8x16 with high res display 2021-02-09 13:46:58 +02:00
defaults Fix date 2021-01-07 21:15:26 +01:00
efi stand/multiboot2: fix header length check 2021-02-23 16:05:03 +01:00
fdt
ficl loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
ficl32
fonts loader: really use bold font for vga text mode 2021-01-08 01:24:30 +02:00
forth loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
i386 loader: autoload_font will hung loader when there is no local console 2021-02-21 12:45:36 +02:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kshim Bump the FreeBSD kernel version in kernel boot shim. 2021-02-17 16:46:34 +01:00
liblua contrib/lua: update to 5.4.2 2021-01-13 23:56:18 -06:00
liblua32
libofw
libsa zfs: merge OpenZFS master-9312e0fd1 2021-02-22 13:01:17 +01:00
libsa32
lua loader_lua: consider userboot console as serial 2021-02-14 21:49:23 +02:00
man
mips loader: fix mips build with gfx_fb 2021-01-04 16:57:50 +00:00
powerpc loader: fix powerpc build with gfx_fb 2021-01-04 16:57:58 +00:00
uboot loader: fix uboot build with gfx_fb 2021-01-03 20:45:37 +02:00
usb
userboot userboot: provide stub gfx functions 2021-01-30 21:20:27 +02:00
defs.mk
fdt.mk
ficl.mk loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
loader.mk loader: start kernel in text mode when there is no vbefb vt driver 2021-01-27 01:07:34 +02:00
lua.mk
Makefile stand: ensure that the efi directory's dependencies are correct 2021-01-27 13:02:51 -06:00
Makefile.amd64 stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
uboot.mk