about summary refs log tree commit diff
diff options
context:
space:
mode:
author2019 <434791602@qq.com>2020-06-18 11:23:10 +0800
committerGitHub <noreply@github.com>2020-06-18 11:23:10 +0800
commit003456f770932b6d737bf323723962d643ca39e9 (patch)
treedd7ba48766e2210ccdfa3207563b59d1c8bfe619
parent394d8ade15cc5044f71ad12f025223d3e0c61d13 (diff)
downloadafl++-003456f770932b6d737bf323723962d643ca39e9.tar.gz
`fault == afl->crash_mode` should be likely
Since during normal fuzzing, crash_mode is FSRV_RUN_OK, and fault is also usually FSRV_RUN_OK since most executions are valid executions, thus it should be likely instead of unlikely
-rw-r--r--src/afl-fuzz-bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
index a6d0c994..f643b5c0 100644
--- a/src/afl-fuzz-bitmap.c
+++ b/src/afl-fuzz-bitmap.c
@@ -570,7 +570,7 @@ u8 save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
 
   }
 
-  if (unlikely(fault == afl->crash_mode)) {
+  if (likely(fault == afl->crash_mode)) {
 
     /* Keep only if there are new bits in the map, add to queue for
        future fuzzing, etc. */