Skip to content

Commit

Permalink
Enabled DEBUG_WOLFSSL_MALLOC by default
Browse files Browse the repository at this point in the history
Checking for memory allocation failures is essential and should never
be disabled. This increases the binary size only minimally.

E.g. performance impact on the C6:
 * binary size increases by 14864 bytes
 * free heap is reduced by 8 bytes
  • Loading branch information
frankencode committed Oct 17, 2024
1 parent fbeba2f commit 9fa612b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

/* Full debugging turned off, but show malloc failure detail */
/* #define DEBUG_WOLFSSL */
// #define DEBUG_WOLFSSL_MALLOC
#define DEBUG_WOLFSSL_MALLOC

/* RSA_LOW_MEM: Half as much memory but twice as slow. */
#define RSA_LOW_MEM
Expand Down

0 comments on commit 9fa612b

Please sign in to comment.