about summary refs log tree commit diff
path: root/patches/afl++-keep-all-crashes.patch
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-11-19 11:02:16 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-11-19 11:02:16 +0900
commit1725ce5a7daf99a75508f15650a01321dd5a8ecc (patch)
tree77373eb85fd08c0236edf9d9a6b648eb28cbec00 /patches/afl++-keep-all-crashes.patch
downloadloftix-1725ce5a7daf99a75508f15650a01321dd5a8ecc.tar.gz
Define some packages
Diffstat (limited to 'patches/afl++-keep-all-crashes.patch')
-rw-r--r--patches/afl++-keep-all-crashes.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/afl++-keep-all-crashes.patch b/patches/afl++-keep-all-crashes.patch
new file mode 100644
index 0000000..c2224ff
--- /dev/null
+++ b/patches/afl++-keep-all-crashes.patch
@@ -0,0 +1,31 @@
+diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
+index fd75a822934f..6257403e12a4 100644
+--- a/src/afl-fuzz-bitmap.c
++++ b/src/afl-fuzz-bitmap.c
+@@ -523,7 +523,7 @@ u8 __attribute__((hot)) save_if_interesting(afl_state_t *afl, void *mem,
+     if (likely(!new_bits)) {
+ 
+       if (unlikely(afl->crash_mode)) { ++afl->total_crashes; }
+-      return 0;
++      //return 0;
+ 
+     }
+ 
+@@ -805,7 +805,7 @@ u8 __attribute__((hot)) save_if_interesting(afl_state_t *afl, void *mem,
+ 
+       ++afl->total_crashes;
+ 
+-      if (afl->saved_crashes >= KEEP_UNIQUE_CRASH) { return keeping; }
++      //if (afl->saved_crashes >= KEEP_UNIQUE_CRASH) { return keeping; }
+ 
+       if (likely(!afl->non_instrumented_mode)) {
+ 
+@@ -818,7 +818,7 @@ u8 __attribute__((hot)) save_if_interesting(afl_state_t *afl, void *mem,
+ 
+         simplify_trace(afl, afl->fsrv.trace_bits);
+ 
+-        if (!has_new_bits(afl, afl->virgin_crash)) { return keeping; }
++        //if (!has_new_bits(afl, afl->virgin_crash)) { return keeping; }
+ 
+       }
+