diff options
| author | van Hauser <vh@thc.org> | 2020-03-11 11:42:57 +0100 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-03-11 11:42:57 +0100 |
| commit | 684f4dd1c44053517c6685a8a3137691535ecd84 (patch) | |
| tree | 67b729127193050c7812bf2159ffac047b45280d /libdislocator/libdislocator.so.c | |
| parent | d8d89507b5cdbd066c149fd3c86a91b3948521aa (diff) | |
| download | afl++-684f4dd1c44053517c6685a8a3137691535ecd84.tar.gz | |
honor afl_quiet on env var checks + code-format
Diffstat (limited to 'libdislocator/libdislocator.so.c')
| -rw-r--r-- | libdislocator/libdislocator.so.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index d61302e7..1fbfe9d6 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -163,7 +163,7 @@ static u32 alloc_canary; static void *__dislocator_alloc(size_t len) { - u8 *ret; + u8 * ret; size_t tlen; int flags, fd, sp; @@ -338,7 +338,7 @@ void free(void *ptr) { if (align_allocations && (len & (ALLOC_ALIGN_SIZE - 1))) { - u8 *ptr_ = ptr; + u8 * ptr_ = ptr; size_t rlen = (len & ~(ALLOC_ALIGN_SIZE - 1)) + ALLOC_ALIGN_SIZE; for (; len < rlen; ++len) if (ptr_[len] != TAIL_ALLOC_CANARY) @@ -451,7 +451,7 @@ void *reallocarray(void *ptr, size_t elem_len, size_t elem_cnt) { const size_t elem_lim = 1UL << (sizeof(size_t) * 4); const size_t elem_tot = elem_len * elem_cnt; - void *ret = NULL; + void * ret = NULL; if ((elem_len >= elem_lim || elem_cnt >= elem_lim) && elem_len > 0 && elem_cnt > (SIZE_MAX / elem_len)) { |
