diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2020-10-15 19:38:52 -0400 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2020-10-15 19:38:52 -0400 |
commit | 5ec906ac6ce4596664a6a7f1626895ebca9cd65e (patch) | |
tree | 0bac48b05b4f3f52c2eaf859a1ef0f9d96ecf5cf /include | |
parent | 64a18c4ea6588147a8cc9c140c4cf344cb27e41d (diff) | |
download | efi-boot-shim-15.2.tar.gz efi-boot-shim-15.2.zip |
Fix incorrect allocation size for EV_EFI_BOOT_SERVICES_APPLICATION events15.2
sizeof(EFI_IMAGE_LOAD_EVENT) needs to represent the size of the header
so we can add the actual device path size to it to compute the event.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tpm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tpm.h b/include/tpm.h index a05c2494..4e33faaf 100644 --- a/include/tpm.h +++ b/include/tpm.h @@ -45,7 +45,7 @@ typedef struct _EFI_IMAGE_LOAD_EVENT { UINTN ImageLengthInMemory; UINTN ImageLinkTimeAddress; UINTN LengthOfDevicePath; - EFI_DEVICE_PATH DevicePath[1]; + EFI_DEVICE_PATH DevicePath[0]; } EFI_IMAGE_LOAD_EVENT; struct efi_tpm_protocol |