diff options
author | van Hauser <vh@thc.org> | 2020-12-25 12:25:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 12:25:05 +0100 |
commit | 450fd17451a31e2f327a4370165e88d99535c6fd (patch) | |
tree | 003d67273010b7552ce25901add3740cfb2a839b /include/alloc-inl.h | |
parent | 7dc433a0c0efb236a2ab6fa4006a91aa02e26779 (diff) | |
parent | a4fd4ea0f46529feb09577a13cc7c053fb22146f (diff) | |
download | afl++-450fd17451a31e2f327a4370165e88d99535c6fd.tar.gz |
Merge pull request #654 from AFLplusplus/dev
fix LTO
Diffstat (limited to 'include/alloc-inl.h')
-rw-r--r-- | include/alloc-inl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h index 8a91d196..c914da5f 100644 --- a/include/alloc-inl.h +++ b/include/alloc-inl.h @@ -363,7 +363,8 @@ static inline void *DFL_ck_realloc(void *orig, u32 size) { if (orig) { - memcpy((char *)ret + ALLOC_OFF_HEAD, (char *)orig + ALLOC_OFF_HEAD, MIN(size, old_size)); + memcpy((char *)ret + ALLOC_OFF_HEAD, (char *)orig + ALLOC_OFF_HEAD, + MIN(size, old_size)); memset((char *)orig + ALLOC_OFF_HEAD, 0xFF, old_size); ALLOC_C1((char *)orig + ALLOC_OFF_HEAD) = ALLOC_MAGIC_F; |