diff options
author | David CARLIER <devnexen@gmail.com> | 2020-04-21 09:17:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 10:17:11 +0200 |
commit | f6c9acd5183b52e9dec0d810c51e3ca6649008fe (patch) | |
tree | a7d610a25140ac8b8a14df87e78cedbda4dcd749 | |
parent | 68218dd31cdbba2a13f42e7190e74bafed9e79c4 (diff) | |
download | afl++-f6c9acd5183b52e9dec0d810c51e3ca6649008fe.tar.gz |
libdislocator android build fix. (#327)
Fix function signature for bionic libc
-rw-r--r-- | libdislocator/libdislocator.so.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index 19e84d9f..8098de91 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -464,7 +464,11 @@ void *reallocarray(void *ptr, size_t elem_len, size_t elem_cnt) { } +#if !defined(__ANDROID__) size_t malloc_usable_size(void *ptr) { +#else +size_t malloc_usable_size(const void *ptr) { +#endif return ptr ? PTR_L(ptr) : 0; |