mm: Complete remaining unused macros instead of memory to fill tags

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-10-31 11:13:47 +08:00 committed by archer
parent 265978d16a
commit 2b2f530e7c
1 changed files with 2 additions and 2 deletions

View File

@ -681,7 +681,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart,
#ifdef CONFIG_MM_FILL_ALLOCATIONS
/* Use the fill value to mark uninitialized user memory */
memset(heapstart, 0xcc, heapsize);
memset(heapstart, MM_INIT_MAGIC, heapsize);
#endif
/* Register to KASan for access check */
@ -1362,7 +1362,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size)
ret = kasan_unpoison(ret, nodesize);
#ifdef CONFIG_MM_FILL_ALLOCATIONS
memset(ret, 0xaa, nodesize);
memset(ret, MM_ALLOC_MAGIC, nodesize);
#endif
}