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 <pjones@redhat.com>
This commit is contained in:
James Bottomley 2020-10-15 19:38:52 -04:00 committed by Peter Jones
parent 64a18c4ea6
commit 5ec906ac6c

View File

@ -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