summaryrefslogtreecommitdiff
path: root/httpboot.c
diff options
context:
space:
mode:
authorJan Setje-Eilers <jan.setjeeilers@oracle.com>2021-07-26 20:24:13 -0700
committerPeter Jones <pjones@redhat.com>2021-08-10 15:02:43 -0400
commit1b30c2b9e5ee7d3e305a28a92805152d5cbfc9cb (patch)
treeb67f88873cd1cf30fbbae0705104ec8faa6ac8e0 /httpboot.c
parent4583db41ea58195956d4cdf97c43a195939f906b (diff)
downloadefi-boot-shim-1b30c2b9e5ee7d3e305a28a92805152d5cbfc9cb.tar.gz
efi-boot-shim-1b30c2b9e5ee7d3e305a28a92805152d5cbfc9cb.zip
fallback: find_boot_option() needs to return the index for the boot entry in optnum
The CopyMem() calls in add_to_boot_list() expect that find_boot_option() returned an index to the matching entry in the BootOrder array. The previous code returned the numerical portion of the boot entry label, which in some cases resulted in -1 * sizeof(CHAR16) being passed to CopyMem() which would in turn corrupt the running firmware resulting in an exception and a failure to boot or reset.
Diffstat (limited to 'httpboot.c')
0 files changed, 0 insertions, 0 deletions