diff options
author | van Hauser <vh@thc.org> | 2022-06-01 07:32:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 07:32:45 +0200 |
commit | 741331649685345abf9b1c13e7a7f8712c2d3e76 (patch) | |
tree | 0b5f215d9f18520f1eb83caac1bd09bd4798634e | |
parent | 942b85bb77e25203c19a4a103e5d470c3a604b2f (diff) | |
parent | ad2a1b05748c1ba72a36d0a569ec19b47d1a1236 (diff) | |
download | afl++-741331649685345abf9b1c13e7a7f8712c2d3e76.tar.gz |
Merge pull request #1430 from devnexen/libdislocator_macos
libdislocator on macOS to get memory block size is malloc_size is
-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 |