fix for macOS M1 Monteray to check pointers in zone_size
@@ -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);
}
