libdislocator, introduces malloc_good_size for Darwin.
MODIFY
utils/libdislocator/libdislocator.so.c
utils/libdislocator/libdislocator.so.c
@@ -520,6 +520,14 @@ size_t malloc_usable_size(const void *ptr) {
}
+#if defined(__APPLE__)
+size_t malloc_good_size(size_t len) {
+
+ return (len & ~(ALLOC_ALIGN_SIZE - 1)) + ALLOC_ALIGN_SIZE;
+
+}
+#endif
+
__attribute__((constructor)) void __dislocator_init(void) {
char *tmp = getenv("AFL_LD_LIMIT_MB");

libdislocator, introduces malloc_good_size for Darwin.