fix(heap): Add integer overflow checks

This commit is contained in:
Dong Heng
2021-01-20 14:52:17 +08:00
parent d3bae6f93f
commit b9b4d8d7da
2 changed files with 16 additions and 2 deletions

View File

@ -21,6 +21,8 @@
extern "C" {
#endif
#define HEAP_MAX_SIZE (96 * 1024)
#define MEM_BLK_TAG 0x80000000 ///< Mark the memory block used
#ifdef CONFIG_HEAP_TRACING