Skip to content

Commit 83d084a

Browse files
author
Moran Peker
committed
add casting to increased void pointer
1 parent 116e14a commit 83d084a

File tree

1 file changed

+1
-1
lines changed
  • components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl

1 file changed

+1
-1
lines changed

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -848,7 +848,7 @@ attest_create_token(struct useful_buf_c *challenge,
848
/* FixMe: Special challenge with option flags appended. This might can
848
/* FixMe: Special challenge with option flags appended. This might can
849
* be removed when the public API can take option_flags.
849
* be removed when the public API can take option_flags.
850
*/
850
*/
851-
option_flags = *(uint32_t *)(challenge->ptr + 32);
851+
option_flags = *(uint32_t *)((uint8_t*)challenge->ptr + 32);
852
challenge->len = 32;
852
challenge->len = 32;
853
}
853
}
854

854

0 commit comments

Comments
 (0)