diff options
author | Daan <daanl@outlook.com> | 2022-02-14 16:32:28 -0800 |
---|---|---|
committer | Daan <daanl@outlook.com> | 2022-02-14 16:32:28 -0800 |
commit | c3b577df0d73af61fc5c6b84b1a61759b1fa84be (patch) | |
tree | a550bbf59839c9a65f7cb705f9a1b878599af831 /src | |
parent | df998563bcafe71057d3ecd901883c5ea11763c0 (diff) |
fix for macOS M1 Monteray to check pointers in zone_size
Diffstat (limited to 'src')
-rw-r--r-- | src/alloc-override-osx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc-override-osx.c b/src/alloc-override-osx.c index a88186b..9c331ca 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); } |