about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-04-02 13:42:08 +0200
committervanhauser-thc <vh@thc.org>2023-04-02 13:42:08 +0200
commit71e2aa5d2bb99bd7edc2efcebd52eee5736c35fd (patch)
tree458fb34fe1f5ba20ee88a9a070185faeceac7265 /src
parent21203c2ea6b0586d3c63f9d33190dfd364677b1a (diff)
downloadafl++-71e2aa5d2bb99bd7edc2efcebd52eee5736c35fd.tar.gz
more fix
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index c550fbc2..a52fb4c6 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -2133,7 +2133,7 @@ havoc_stage:
   /* We essentially just do several thousand runs (depending on perf_score)
      where we take the input file and make random stacked tweaks. */
 
-  u32   r_max, mutation_array_len;
+  u32  r_max, mutation_array_len;
   u32 *mutation_array;
 
   // if ( ... )
@@ -2905,9 +2905,9 @@ havoc_stage:
               val /= 2;
               break;
             case 4:
-              if (val && val < 0xfffffff) {
+              if (val && (u64)val < 0x19999999) {
 
-                val = rand_next(afl) % (val * 10);
+                val = (u64)rand_next(afl) % (u64)((u64)val * 10);
 
               } else {