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:
|
||
---|---|---|
.. | ||
amd64 | ||
arm | ||
arm64 | ||
i386 | ||
riscv |