Skip to content

Commit c3b577d

Browse files
committed
fix for macOS M1 Monteray to check pointers in zone_size
1 parent df99856 commit c3b577d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alloc-override-osx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern malloc_zone_t* malloc_default_purgeable_zone(void) __attribute__((weak_im
4343

4444
static size_t zone_size(malloc_zone_t* zone, const void* p) {
4545
MI_UNUSED(zone);
46-
//if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out
46+
if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out
4747
return mi_usable_size(p);
4848
}
4949

0 commit comments

Comments
 (0)