Skip to content

Commit

Permalink
github/workflows/ci.yml: Try to fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Francis <[email protected]>
  • Loading branch information
alistair23 committed Jul 30, 2024
1 parent bc982f9 commit 2c543a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update; \
sudo apt-get install -y cmake libclang-dev libpci-dev libssl-dev python3-dev gem; \
sudo gem install cbor-diag;
Expand Down
4 changes: 2 additions & 2 deletions src/libspdm/spdm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1668,8 +1668,8 @@ unsafe fn libspdm_fill_measurement_image_hash_block(

(*measurement_block)
.measurement_block_common_header
.measurement_size = core::mem::size_of::<spdm_measurement_block_dmtf_header_t>() as u16
+ data.len() as u16;
.measurement_size =
core::mem::size_of::<spdm_measurement_block_dmtf_header_t>() as u16 + data.len() as u16;

(measurement_block.add(1) as *mut u8).copy_from(data.as_ptr(), data.len());

Expand Down

0 comments on commit 2c543a7

Please sign in to comment.