summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-29 14:14:56 -0400
committerPeter Jones <pjones@redhat.com>2021-03-30 11:40:32 -0400
commit369e2eff10d8028c4fa682223d4a4b2005d8b41a (patch)
treeff0e32a38ed7826ccf3ee544275b282e50fb2b97
parent212ba30544f7802cbfd5466040c09e70111a6516 (diff)
downloadefi-boot-shim-369e2eff10d8028c4fa682223d4a4b2005d8b41a.tar.gz
efi-boot-shim-369e2eff10d8028c4fa682223d4a4b2005d8b41a.zip
Fix an off-by-one on the sbat self-check.
Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index b00fa5fc..c5cfbb83 100644
--- a/shim.c
+++ b/shim.c
@@ -1956,7 +1956,7 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
goto die;
}
- efi_status = handle_sbat(sbat_start, sbat_end - sbat_start);
+ efi_status = handle_sbat(sbat_start, sbat_end - sbat_start - 1);
if (EFI_ERROR(efi_status)) {
perror(L"Verifiying shim SBAT data failed: %r\n",
efi_status);