Skip to content

Commit 369e2ef

Browse files
committed
Fix an off-by-one on the sbat self-check.
Signed-off-by: Peter Jones <[email protected]>
1 parent 212ba30 commit 369e2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shim.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
19561956
goto die;
19571957
}
19581958

1959-
efi_status = handle_sbat(sbat_start, sbat_end - sbat_start);
1959+
efi_status = handle_sbat(sbat_start, sbat_end - sbat_start - 1);
19601960
if (EFI_ERROR(efi_status)) {
19611961
perror(L"Verifiying shim SBAT data failed: %r\n",
19621962
efi_status);

0 commit comments

Comments
 (0)