Skip to content

Commit

Permalink
[EFR32] Fix missing include of stdio when using snprintf in mbedtls (p…
Browse files Browse the repository at this point in the history
…roject-chip#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.
  • Loading branch information
stevew817 authored and popovdg committed Feb 25, 2025
1 parent 5d93048 commit 4374a54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/silabs/efr32/efr32-chip-mbedtls-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdio.h>
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf

#define MBEDTLS_AES_ROM_TABLES
Expand Down

0 comments on commit 4374a54

Please sign in to comment.