mm: Complete remaining unused macros instead of memory to fill tags
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
265978d16a
commit
2b2f530e7c
|
@ -681,7 +681,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart,
|
||||||
#ifdef CONFIG_MM_FILL_ALLOCATIONS
|
#ifdef CONFIG_MM_FILL_ALLOCATIONS
|
||||||
/* Use the fill value to mark uninitialized user memory */
|
/* Use the fill value to mark uninitialized user memory */
|
||||||
|
|
||||||
memset(heapstart, 0xcc, heapsize);
|
memset(heapstart, MM_INIT_MAGIC, heapsize);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Register to KASan for access check */
|
/* 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);
|
ret = kasan_unpoison(ret, nodesize);
|
||||||
|
|
||||||
#ifdef CONFIG_MM_FILL_ALLOCATIONS
|
#ifdef CONFIG_MM_FILL_ALLOCATIONS
|
||||||
memset(ret, 0xaa, nodesize);
|
memset(ret, MM_ALLOC_MAGIC, nodesize);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue