From 4374a54b0f8c2839ae4183b2e6dc78e96ba0c3d5 Mon Sep 17 00:00:00 2001 From: Steven Cooreman <4510034+stevew817@users.noreply.github.com> Date: Tue, 25 Feb 2025 16:55:19 +0100 Subject: [PATCH] [EFR32] Fix missing include of stdio when using snprintf in mbedtls (#37763) Usage of MBEDTLS_PLATFORM_NO_STD_FUNCTIONS means the mbedtls headers are not including stdio by default, leading to usage of snprintf without prior declaration in x509_csr.c. --- src/platform/silabs/efr32/efr32-chip-mbedtls-config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h b/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h index d846bfdfe1ae47..466d27c865fc2a 100644 --- a/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h +++ b/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h @@ -95,6 +95,8 @@ #define MBEDTLS_ECDSA_DETERMINISTIC #endif // SL_MATTER_PROVISION_FLASH +// If defining snprintf we are also responsible for including its declaration +#include #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf #define MBEDTLS_AES_ROM_TABLES