diff options
author | van Hauser <vh@thc.org> | 2022-07-15 10:12:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 10:12:35 +0200 |
commit | c57988e672634ee98048eba6432cc1f4e377e07c (patch) | |
tree | 1ea5ebbb0b47e8d55b1950e9b787ec9f254655af /utils/libdislocator/libdislocator.so.c | |
parent | 40947508037b874020c8dd1251359fecaab04b9d (diff) | |
parent | b847e0f414e7b310e1a68bc501d4e2453bfce70e (diff) | |
download | afl++-c57988e672634ee98048eba6432cc1f4e377e07c.tar.gz |
Merge pull request #1469 from AFLplusplus/dev
push to stable
Diffstat (limited to 'utils/libdislocator/libdislocator.so.c')
-rw-r--r-- | utils/libdislocator/libdislocator.so.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/libdislocator/libdislocator.so.c b/utils/libdislocator/libdislocator.so.c index c821a8f7..149b910e 100644 --- a/utils/libdislocator/libdislocator.so.c +++ b/utils/libdislocator/libdislocator.so.c @@ -171,7 +171,7 @@ static u32 alloc_canary; static void *__dislocator_alloc(size_t len) { - u8 * ret, *base; + u8 *ret, *base; size_t tlen; int flags, protflags, fd, sp; @@ -488,7 +488,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)) { @@ -535,7 +535,7 @@ __attribute__((constructor)) void __dislocator_init(void) { if (tmp) { - char * tok; + char *tok; unsigned long long mmem = strtoull(tmp, &tok, 10); if (*tok != '\0' || errno == ERANGE || mmem > SIZE_MAX / 1024 / 1024) FATAL("Bad value for AFL_LD_LIMIT_MB"); |