From dadb621a97e3cfa30f6905f78c8e4c442861b8f7 Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Sun, 29 Dec 2019 17:28:56 +0200 Subject: [PATCH] Change size embedded in the temp_ram_page_data The size stated in the struct header was 0xB0, however the actual size(including the header) is 0xAC. Changed the len value in the header, to avoid memory corruption. Raised in #12171 --- .../COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.c b/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.c index d948f7ba68..797ecea695 100755 --- a/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.c +++ b/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.c @@ -21,7 +21,7 @@ /* Temporary Boodloader data - contains temp mandatory claims */ __attribute__((aligned(4))) const uint8_t temp_ram_page_data[] = { - 0x16, 0x20, 0xB0, 0x00, //shared_data_tlv_header + 0x16, 0x20, 0xAC, 0x00, //shared_data_tlv_header 0x83, 0x11, 0x0C, 0x00, // SW_TYPE 0x4E, 0x53, 0x50, 0x45, 0x5F, 0x53, 0x50, 0x45, 0x80, 0x11, 0x0A, 0x00, //SW_VERSION