Skip to content

Commit 18dd436

Browse files
authored
[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.
1 parent 9c49f28 commit 18dd436

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/silabs/efr32/efr32-chip-mbedtls-config.h

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
#define MBEDTLS_ECDSA_DETERMINISTIC
9696
#endif // SL_MATTER_PROVISION_FLASH
9797

98+
// If defining snprintf we are also responsible for including its declaration
99+
#include <stdio.h>
98100
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
99101

100102
#define MBEDTLS_AES_ROM_TABLES

0 commit comments

Comments
 (0)