diff options
| author | Chris Coulson <chris.coulson@canonical.com> | 2019-06-22 15:33:03 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:53:24 -0400 |
| commit | 6fd8db6bb3b23b9e41f109135253f77263071f46 (patch) | |
| tree | 3f0dbc7be406b3c82037c6cebc19f59b0ee0b1ca /lib/variables.c | |
| parent | 07de085dabab8daaea589b597e3915893cc98445 (diff) | |
| download | efi-boot-shim-6fd8db6bb3b23b9e41f109135253f77263071f46.tar.gz efi-boot-shim-6fd8db6bb3b23b9e41f109135253f77263071f46.zip | |
tpm: Fix off-by-one error when calculating event size
tpm_log_event_raw() allocates a buffer for the EFI_TCG2_EVENT structure
that is one byte larger than necessary, and sets event->Size accordingly.
The result of this is that the event data recorded in the log differs
from the data that is measured to the TPM (it has an extra zero byte
at the end).
Upstream-commit-id: 8a27a4809a6
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions
