Files
u-boot/common
Simon Glass bf6a7b4e28 dlmalloc: calloc: fix zeroing early allocations
When full malloc is enabled and SYS_MALLOC_F is also enabled, the
simple pre-reloc heap is used before relocation. The calloc_must_clear
macro relies on chunk metadata which does not exist for simple malloc
allocations.

Use memset directly to zero out memory from simple malloc.

Changes from original commit:
- Port to dlcalloc() in dlmalloc 2.8.6
- Update memset() second arg to be a char

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
(cherry picked from bb71a2d9dc)
2025-12-01 16:57:15 +00:00
..
2025-11-12 08:40:05 -07:00
2025-12-01 15:57:27 +00:00