Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libspdm: spdm: Don't double count measurements #69

Merged
merged 1 commit into from
May 13, 2024

Conversation

alistair23
Copy link
Collaborator

The measurement helper functions (like
libspdm_fill_measurement_image_hash_block()) already include the spdm_measurement_block_dmtf_t size and the length of the data in the return value. There is no need to calculate it twice.

This commit removes the second attempt to calculate total_size_needed. This fixes the wrong size being reported if changes are made to the measurement functions.

The measurement helper functions (like
libspdm_fill_measurement_image_hash_block()) already include the
spdm_measurement_block_dmtf_t size and the length of the data in the
return value. There is no need to calculate it twice.

This commit removes the second attempt to calculate total_size_needed.
This fixes the wrong size being reported if changes are made to the
measurement functions.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
@twilfredo twilfredo merged commit b240efe into master May 13, 2024
@alistair23 alistair23 deleted the alistair/block-size-fixup branch May 13, 2024 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants