From 83d084afef83ccccabf018f250c5231a457559c7 Mon Sep 17 00:00:00 2001 From: Moran Peker Date: Thu, 28 Feb 2019 20:30:05 +0200 Subject: [PATCH] add casting to increased void pointer --- .../COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c b/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c index 245c1cf0b7..b1f897a6c0 100755 --- a/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c +++ b/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c @@ -848,7 +848,7 @@ attest_create_token(struct useful_buf_c *challenge, /* FixMe: Special challenge with option flags appended. This might can * be removed when the public API can take option_flags. */ - option_flags = *(uint32_t *)(challenge->ptr + 32); + option_flags = *(uint32_t *)((uint8_t*)challenge->ptr + 32); challenge->len = 32; }