From 5ec906ac6ce4596664a6a7f1626895ebca9cd65e Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Thu, 15 Oct 2020 19:38:52 -0400 Subject: Fix incorrect allocation size for EV_EFI_BOOT_SERVICES_APPLICATION events 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 --- include/tpm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tpm.h') 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 -- cgit v1.2.3