diff options
author | David CARLIER <devnexen@gmail.com> | 2022-05-31 21:07:02 +0100 |
---|---|---|
committer | David CARLIER <devnexen@gmail.com> | 2022-05-31 21:07:02 +0100 |
commit | ad2a1b05748c1ba72a36d0a569ec19b47d1a1236 (patch) | |
tree | 0b5f215d9f18520f1eb83caac1bd09bd4798634e | |
parent | 942b85bb77e25203c19a4a103e5d470c3a604b2f (diff) | |
download | afl++-ad2a1b05748c1ba72a36d0a569ec19b47d1a1236.tar.gz |
libdislocator on macOS to get memory block size is malloc_size is
instead.
-rw-r--r-- | utils/libdislocator/libdislocator.so.c | 5 |
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 |