From dcd6fd77b85991f339277906f78131bd9cbed76f Mon Sep 17 00:00:00 2001 From: Daan Date: Tue, 17 Jun 2025 19:50:45 -0700 Subject: [PATCH] ensure the page submaps are zero initialized --- src/page-map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page-map.c b/src/page-map.c index 03d2a4b3..b7d75e5e 100644 --- a/src/page-map.c +++ b/src/page-map.c @@ -277,7 +277,7 @@ static bool mi_page_map_ensure_at(size_t idx, mi_submap_t* submap) { if mi_unlikely(sub==NULL) { // sub map not yet allocated, allocate it now mi_memid_t memid; - sub = (mi_submap_t)_mi_os_alloc(MI_PAGE_MAP_SUB_SIZE, &memid); + sub = (mi_submap_t)_mi_os_zalloc(MI_PAGE_MAP_SUB_SIZE, &memid); if (sub==NULL) { _mi_warning_message("unable to extend the page map\n"); return false;