about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-05-31 21:07:02 +0100
committerDavid CARLIER <devnexen@gmail.com>2022-05-31 21:07:02 +0100
commitad2a1b05748c1ba72a36d0a569ec19b47d1a1236 (patch)
tree0b5f215d9f18520f1eb83caac1bd09bd4798634e
parent942b85bb77e25203c19a4a103e5d470c3a604b2f (diff)
downloadafl++-ad2a1b05748c1ba72a36d0a569ec19b47d1a1236.tar.gz
libdislocator on macOS to get memory block size is malloc_size is
instead.
-rw-r--r--utils/libdislocator/libdislocator.so.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/libdislocator/libdislocator.so.c b/utils/libdislocator/libdislocator.so.c
index bd08a678..1b4a7316 100644
--- a/utils/libdislocator/libdislocator.so.c
+++ b/utils/libdislocator/libdislocator.so.c
@@ -505,7 +505,10 @@ void *reallocarray(void *ptr, size_t elem_len, size_t elem_cnt) {
 
 }
 
-#if !defined(__ANDROID__)
+#if defined(__APPLE__)
+size_t malloc_size(const void *ptr) {
+
+#elif !defined(__ANDROID__)
 size_t malloc_usable_size(void *ptr) {
 
 #else