Skip to content

Commit

Permalink
tpm2_eventlog_yaml.c Fix output of BlobDescription.
Browse files Browse the repository at this point in the history
The last byte of the BlobDescription for an EV_EFI_PLATFORM_FIRMWARE_BLOB2
event was not displayed.
Fixes: #3455.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Feb 10, 2025
1 parent 6d06265 commit ff457e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tpm2_eventlog_yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ bool yaml_uefi_platfwblob2(UEFI_PLATFORM_FIRMWARE_BLOB2 *data) {
return false;
}

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

tpm2_tool_output(" Event:\n"
" BlobDescriptionSize: %d\n"
Expand Down

0 comments on commit ff457e2

Please sign in to comment.