about summary refs log tree commit diff
path: root/src/afl-fuzz-extras.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-11-07 10:31:09 +0100
committervanhauser-thc <vh@thc.org>2023-11-07 10:31:09 +0100
commitac0ad563480e3bf1fb69349e960b7957fffe75df (patch)
tree83ed891190e884fbc9f7f215ae4193577b64ca14 /src/afl-fuzz-extras.c
parentf3d2127fd815bed2ec9dfab981123898d11cea65 (diff)
downloadafl++-ac0ad563480e3bf1fb69349e960b7957fffe75df.tar.gz
fix dictionary and cmin
Diffstat (limited to 'src/afl-fuzz-extras.c')
-rw-r--r--src/afl-fuzz-extras.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c
index f6de11ae..905431d1 100644
--- a/src/afl-fuzz-extras.c
+++ b/src/afl-fuzz-extras.c
@@ -176,6 +176,8 @@ void load_extras_file(afl_state_t *afl, u8 *fname, u32 *min_len, u32 *max_len,
     afl->extras =
         afl_realloc((void **)&afl->extras,
                     (afl->extras_cnt + 1) * sizeof(struct extra_data));
+    char *hexdigits = "0123456789abcdef";
+
     if (unlikely(!afl->extras)) { PFATAL("alloc"); }
 
     wptr = afl->extras[afl->extras_cnt].data = ck_alloc(rptr - lptr);
@@ -184,13 +186,12 @@ void load_extras_file(afl_state_t *afl, u8 *fname, u32 *min_len, u32 *max_len,
 
     while (*lptr) {
 
-      char *hexdigits = "0123456789abcdef";
-
       switch (*lptr) {
 
         case 1 ... 31:
         case 128 ... 255:
           WARNF("Non-printable characters in line %u.", cur_line);
+          ++lptr;
           continue;
           break;