diff options
author | yuawn <ssspeed00@gmail.com> | 2023-03-25 09:45:02 +0000 |
---|---|---|
committer | yuawn <ssspeed00@gmail.com> | 2023-03-25 09:45:02 +0000 |
commit | e24ae963614ecc0874ab5e8ff370419401292913 (patch) | |
tree | 55108dabbf2c78d51e5c0dd61aa85681aa6053b8 /src/afl-fuzz-bitmap.c | |
parent | 0f62e0b1674f19c41c5deb65354e832a0aa87bef (diff) | |
download | afl++-e24ae963614ecc0874ab5e8ff370419401292913.tar.gz |
add likely() to cksum check
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r-- | src/afl-fuzz-bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c index fe90faf0..d9c792d1 100644 --- a/src/afl-fuzz-bitmap.c +++ b/src/afl-fuzz-bitmap.c @@ -575,7 +575,7 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) { } /* For AFLFast schedules we update the new queue entry */ - if (cksum) { + if (likely(cksum)) { afl->queue_top->n_fuzz_entry = cksum % N_FUZZ_SIZE; afl->n_fuzz[afl->queue_top->n_fuzz_entry] = 1; |