Skip to content

Commit ff457e2

Browse files
tpm2_eventlog_yaml.c Fix output of BlobDescription.
The last byte of the BlobDescription for an EV_EFI_PLATFORM_FIRMWARE_BLOB2 event was not displayed. Fixes: #3455. Signed-off-by: Juergen Repp <juergen_repp@web.de>
1 parent 6d06265 commit ff457e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tpm2_eventlog_yaml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ bool yaml_uefi_platfwblob2(UEFI_PLATFORM_FIRMWARE_BLOB2 *data) {
783783
return false;
784784
}
785785

786-
bytes_to_str (data->BlobDescription, blobdescsize, eventdesc, 2*blobdescsize);
786+
bytes_to_str (data->BlobDescription, blobdescsize, eventdesc, 2*blobdescsize + 1);
787787

788788
tpm2_tool_output(" Event:\n"
789789
" BlobDescriptionSize: %d\n"

0 commit comments

Comments
 (0)