about summary refs log tree commit diff
path: root/afl-tmin.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-08-11 15:40:53 +0200
committerhexcoder- <heiko@hexco.de>2019-08-11 15:40:53 +0200
commitf63318a20f5ed974de5f8068a67d1292c64ca776 (patch)
tree458809445cf9b661c4d5cadf59b3fbf02ae44dab /afl-tmin.c
parentf5d4912ca837d5efcd1aac4d436c7563c7614646 (diff)
downloadafl++-f63318a20f5ed974de5f8068a67d1292c64ca776.tar.gz
several code cleanups: avoid #if in macro parameters
avoid arithmetic with void pointers (undefined behaviour)
avoid some shadowed variables
Diffstat (limited to 'afl-tmin.c')
-rw-r--r--afl-tmin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-tmin.c b/afl-tmin.c
index 94f3bb3f..4989d7ce 100644
--- a/afl-tmin.c
+++ b/afl-tmin.c
@@ -551,7 +551,6 @@ static void minimize(char** argv) {
 
   while (set_pos < in_len) {
 
-    u8  res;
     u32 use_len = MIN(set_len, in_len - set_pos);
 
     for (i = 0; i < use_len; i++)
@@ -562,12 +561,13 @@ static void minimize(char** argv) {
       memcpy(tmp_buf, in_data, in_len);
       memset(tmp_buf + set_pos, '0', use_len);
   
+      u8  res;
       res = run_target(argv, tmp_buf, in_len, 0);
 
       if (res) {
 
         memset(in_data + set_pos, '0', use_len);
-        changed_any = 1;
+/*        changed_any = 1; value is not used */
         alpha_del0 += use_len;
 
       }