summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2020-10-15 19:38:52 -0400
committerPeter Jones <pjones@redhat.com>2020-10-15 19:38:52 -0400
commit5ec906ac6ce4596664a6a7f1626895ebca9cd65e (patch)
tree0bac48b05b4f3f52c2eaf859a1ef0f9d96ecf5cf
parent64a18c4ea6588147a8cc9c140c4cf344cb27e41d (diff)
downloadefi-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>
-rw-r--r--include/tpm.h2
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