From 003456f770932b6d737bf323723962d643ca39e9 Mon Sep 17 00:00:00 2001 From: 2019 <434791602@qq.com> Date: Thu, 18 Jun 2020 11:23:10 +0800 Subject: `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 --- src/afl-fuzz-bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/afl-fuzz-bitmap.c') 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. */ -- cgit 1.4.1