0eaa97f0e8
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:
|
||
---|---|---|
.. | ||
boot1 | ||
fdt | ||
gptboot | ||
include | ||
libefi | ||
loader | ||
loader_4th | ||
loader_lua | ||
loader_simp | ||
Makefile | ||
Makefile.inc |