Skip to content

Commit 3d3c928

Browse files
committed
Enable heap poisoning only when debug options are enabled (#1800)
1 parent 19e97bf commit 3d3c928

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp8266/umm_malloc/umm_malloc_cfg.h

+2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ extern char _heap_start;
131131
* callback is called: `UMM_HEAP_CORRUPTION_CB()`
132132
*/
133133

134+
#if defined(DEBUG_ESP_PORT) || defined(DEBUG_ESP_CORE)
134135
#define UMM_POISON
136+
#endif
135137

136138
#define UMM_POISON_SIZE_BEFORE 4
137139
#define UMM_POISON_SIZE_AFTER 4

0 commit comments

Comments
 (0)