From 07a17dfeae7cc61085d257a225133df844a69d5f Mon Sep 17 00:00:00 2001 From: daan Date: Thu, 30 Apr 2020 17:39:34 -0700 Subject: [PATCH] fix initialization of union padding; issue found through valgrind by @jasongibson --- src/region.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/region.c b/src/region.c index fd7d4544..46e89df3 100644 --- a/src/region.c +++ b/src/region.c @@ -205,6 +205,7 @@ static bool mi_region_try_alloc_os(size_t blocks, bool commit, bool allow_large, // and share it mi_region_info_t info; + info.value = 0; // initialize the full union to zero info.x.valid = true; info.x.is_large = region_large; info.x.numa_node = (short)_mi_os_numa_node(tld);