about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-11-19 15:35:26 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-11-19 15:35:26 +0900
commit95309e93fa4d4b4f9893270151f2cd348b53905e (patch)
tree22e8ccbcc535108be6257fcda3af61693595779e
parent7d4127ab76d9ae5adead5f95cb9ce9757b419252 (diff)
downloadloftix-95309e93fa4d4b4f9893270151f2cd348b53905e.tar.gz
Polish
-rw-r--r--loftix/bugs.scm3
-rw-r--r--patches/afl++-keep-all-crashes.patch9
2 files changed, 4 insertions, 8 deletions
diff --git a/loftix/bugs.scm b/loftix/bugs.scm
index d39060b..ec3d424 100644
--- a/loftix/bugs.scm
+++ b/loftix/bugs.scm
@@ -29,6 +29,5 @@
               (uri (string-append "mirror://gnu/binutils/binutils-"
                                   version ".tar.bz2"))
               (sha256
-               (base32
-                "1gqfyksdnj3iir5gzyvlp785mnk60g1pll6zbzbslfchhr4rb8i9"))
+               (base32 "1gqfyksdnj3iir5gzyvlp785mnk60g1pll6zbzbslfchhr4rb8i9"))
               (patches '())))))
diff --git a/patches/afl++-keep-all-crashes.patch b/patches/afl++-keep-all-crashes.patch
index c2224ff..f5e0b7a 100644
--- a/patches/afl++-keep-all-crashes.patch
+++ b/patches/afl++-keep-all-crashes.patch
@@ -2,30 +2,27 @@ 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,
+@@ -523,7 +523,6 @@ 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,
+@@ -804,7 +804,6 @@ 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,
+@@ -816,7 +816,6 @@ 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; }
  
        }