about summary refs log tree commit diff
path: root/instrumentation/afl-compiler-rt.o.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-11-03 22:16:22 +0100
committervanhauser-thc <vh@thc.org>2021-11-03 22:16:22 +0100
commit809f4922b9e26dc0a83de6d68eb55df4744daf41 (patch)
treea15b418663061840a0b4d3636ba12475e345c5e3 /instrumentation/afl-compiler-rt.o.c
parentf5535e348d37460daa4c6ea43063b451aa83d9cc (diff)
downloadafl++-809f4922b9e26dc0a83de6d68eb55df4744daf41.tar.gz
remove old var
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r--instrumentation/afl-compiler-rt.o.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index fcd8caaf..65bc16bc 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1908,14 +1908,14 @@ void __cmplog_rtn_hook_n(u8 *ptr1, u8 *ptr2, u64 len) {
   uintptr_t k = (uintptr_t)__builtin_return_address(0);
   k = (uintptr_t)(default_hash((u8 *)&k, sizeof(uintptr_t)) & (CMP_MAP_W - 1));
 
-  u32 hits, reset = 1;
+  u32 hits;
 
   if (__afl_cmp_map->headers[k].type != CMP_TYPE_RTN) {
 
     __afl_cmp_map->headers[k].type = CMP_TYPE_RTN;
     __afl_cmp_map->headers[k].hits = 1;
     __afl_cmp_map->headers[k].shape = l - 1;
-    reset = hits = 0;
+    hits = 0;
 
   } else {
 
@@ -1956,14 +1956,14 @@ void __cmplog_rtn_hook_strn(u8 *ptr1, u8 *ptr2, u64 len) {
   uintptr_t k = (uintptr_t)__builtin_return_address(0);
   k = (uintptr_t)(default_hash((u8 *)&k, sizeof(uintptr_t)) & (CMP_MAP_W - 1));
 
-  u32 hits, reset = 1;
+  u32 hits;
 
   if (__afl_cmp_map->headers[k].type != CMP_TYPE_RTN) {
 
     __afl_cmp_map->headers[k].type = CMP_TYPE_RTN;
     __afl_cmp_map->headers[k].hits = 1;
     __afl_cmp_map->headers[k].shape = l - 1;
-    reset = hits = 0;
+    hits = 0;
 
   } else {
 
@@ -2006,14 +2006,14 @@ void __cmplog_rtn_hook_str(u8 *ptr1, u8 *ptr2) {
   uintptr_t k = (uintptr_t)__builtin_return_address(0);
   k = (uintptr_t)(default_hash((u8 *)&k, sizeof(uintptr_t)) & (CMP_MAP_W - 1));
 
-  u32 hits, reset = 1;
+  u32 hits;
 
   if (__afl_cmp_map->headers[k].type != CMP_TYPE_RTN) {
 
     __afl_cmp_map->headers[k].type = CMP_TYPE_RTN;
     __afl_cmp_map->headers[k].hits = 1;
     __afl_cmp_map->headers[k].shape = l - 1;
-    reset = hits = 0;
+    hits = 0;
 
   } else {
 
@@ -2064,14 +2064,14 @@ void __cmplog_rtn_hook(u8 *ptr1, u8 *ptr2) {
   uintptr_t k = (uintptr_t)__builtin_return_address(0);
   k = (uintptr_t)(default_hash((u8 *)&k, sizeof(uintptr_t)) & (CMP_MAP_W - 1));
 
-  u32 hits, reset = 1;
+  u32 hits;
 
   if (__afl_cmp_map->headers[k].type != CMP_TYPE_RTN) {
 
     __afl_cmp_map->headers[k].type = CMP_TYPE_RTN;
     __afl_cmp_map->headers[k].hits = 1;
     __afl_cmp_map->headers[k].shape = len - 1;
-    reset = hits = 0;
+    hits = 0;
 
   } else {