From c3b577df0d73af61fc5c6b84b1a61759b1fa84be Mon Sep 17 00:00:00 2001 From: Daan Date: Mon, 14 Feb 2022 16:32:28 -0800 Subject: [PATCH] fix for macOS M1 Monteray to check pointers in zone_size --- src/alloc-override-osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc-override-osx.c b/src/alloc-override-osx.c index a88186bc..9c331cae 100644 --- a/src/alloc-override-osx.c +++ b/src/alloc-override-osx.c @@ -43,7 +43,7 @@ extern malloc_zone_t* malloc_default_purgeable_zone(void) __attribute__((weak_im static size_t zone_size(malloc_zone_t* zone, const void* p) { MI_UNUSED(zone); - //if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out + if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out return mi_usable_size(p); }