about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-11-22 14:56:57 +0100
committervanhauser-thc <vh@thc.org>2023-11-28 08:59:04 +0100
commitd2aef74ad77e49a96f152517445a515ba4814bcb (patch)
tree653e3f03af46cf787e0d55d96202a5e7e0b7f699 /src
parente4f3ebcebb3031c6a70f841996a7fb03d52fe351 (diff)
downloadafl++-d2aef74ad77e49a96f152517445a515ba4814bcb.tar.gz
changes
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c2
1 files changed, 1 insertions, 1 deletions
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;