protos/efi_boot_entry: BootOrder over 128 entries causes panic
Problem
find_boot_entry() reads BootOrder into a fixed 128-element array. UEFI defines BootOrder as a variable-length array of UINT16 values, so a valid variable containing 129 entries needs 258 bytes. Firmware then returns EFI_BUFFER_TOO_SMALL, which Limine treats as a fatal read failure.
Reproduction
A mocked EFI runtime using the current source produces:
128 entries: found
129 entries: failed
The 129-entry case supplies a matching Boot0080 variable; the failure occurs before Limine searches it.
Expected behaviour
Query the BootOrder size, allocate that amount, and read the variable. The read should tolerate a bounded size change between the query and fetch, and release the allocation on every non-fatal exit path.
Ownership check
Checked issue assignees and comments, linked and open/draft PRs, issue/PR searches for BootOrder, find_boot_entry, efi_boot_entry, and EFI_BUFFER_TOO_SMALL, upstream and recent fork branches, recent commits touching common/protos/efi_boot_entry.c, and repository discussions. No matching issue, patch, branch, or active claim was found as of 2026-10-02. The project uses GitHub contributions and has no repository Discussions or documented mailing-list patch workflow.
Fixed by #681