diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-29 14:14:56 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-30 11:40:32 -0400 |
| commit | 369e2eff10d8028c4fa682223d4a4b2005d8b41a (patch) | |
| tree | ff0e32a38ed7826ccf3ee544275b282e50fb2b97 | |
| parent | 212ba30544f7802cbfd5466040c09e70111a6516 (diff) | |
| download | efi-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
