about summary refs log tree commit diff
path: root/src/afl-fuzz-run.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-08-07 16:55:58 +0200
committerDominik Maier <domenukk@gmail.com>2020-08-07 16:55:58 +0200
commit22d3a5e90abd58c6a4bb68bf1b3f7ece8283f5bb (patch)
treee6bd88b59d83a426696dbb2850dee762d0a6f164 /src/afl-fuzz-run.c
parent4a6d66d8c5dcbec8b5014ff0445d9292b3958e1d (diff)
downloadafl++-22d3a5e90abd58c6a4bb68bf1b3f7ece8283f5bb.tar.gz
enabled Wextra, fixed bugs
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r--src/afl-fuzz-run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index ed4a1081..8d652155 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -733,12 +733,12 @@ u8 trim_case(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
 
   len_p2 = next_pow2(q->len);
 
-  remove_len = MAX(len_p2 / TRIM_START_STEPS, TRIM_MIN_BYTES);
+  remove_len = MAX(len_p2 / TRIM_START_STEPS, (u32)TRIM_MIN_BYTES);
 
   /* Continue until the number of steps gets too high or the stepover
      gets too small. */
 
-  while (remove_len >= MAX(len_p2 / TRIM_END_STEPS, TRIM_MIN_BYTES)) {
+  while (remove_len >= MAX(len_p2 / TRIM_END_STEPS, (u32)TRIM_MIN_BYTES)) {
 
     u32 remove_pos = remove_len;