about summary refs log tree commit diff
path: root/include/alloc-inl.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-12-23 17:56:39 +0100
committervan Hauser <vh@thc.org>2020-12-23 17:56:39 +0100
commit03849d147a69cf627746a8ad5f1b653367a56ff5 (patch)
tree67fba954a23ef0a6372d29a4b8def1e0cd948588 /include/alloc-inl.h
parent1c79687dfe4dc3260b8141fe9be7c9763679ba80 (diff)
downloadafl++-03849d147a69cf627746a8ad5f1b653367a56ff5.tar.gz
warn on _AFL and __AFL env vars
Diffstat (limited to 'include/alloc-inl.h')
-rw-r--r--include/alloc-inl.h3
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;