diff options
author | vanhauser-thc <vh@thc.org> | 2023-11-22 14:56:57 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-11-28 08:59:04 +0100 |
commit | d2aef74ad77e49a96f152517445a515ba4814bcb (patch) | |
tree | 653e3f03af46cf787e0d55d96202a5e7e0b7f699 | |
parent | e4f3ebcebb3031c6a70f841996a7fb03d52fe351 (diff) | |
download | afl++-d2aef74ad77e49a96f152517445a515ba4814bcb.tar.gz |
changes
-rw-r--r-- | TODO.md | 2 | ||||
-rw-r--r-- | src/afl-fuzz-run.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md index 3f8855a0..9e9a2366 100644 --- a/TODO.md +++ b/TODO.md @@ -7,6 +7,8 @@ - cmplog rtn sanity check on fixed length? + no length 1 - afl-showmap -f support - afl-fuzz multicore wrapper script + - when trimming then perform crash detection + - either -L0 and/or -p mmopt results in zero new coverage ## Should diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index ae7969a6..b6d5df95 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -931,7 +931,7 @@ u8 trim_case(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) { detected, it will still work to some extent, so we don't check for this. */ - if (q->len < 5) { return 0; } + if (unlikely(q->len < 5)) { return 0; } afl->stage_name = afl->stage_name_buf; afl->bytes_trim_in += q->len; |