about summary refs log tree commit diff
path: root/src/afl-fuzz-run.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-08-07 19:53:32 +0200
committerhexcoder- <heiko@hexco.de>2020-08-07 19:53:32 +0200
commit8551d8e48e18a5a50955945b5f73aff3cb492de5 (patch)
tree4e62bae271be851bd2e556d51e09197163814190 /src/afl-fuzz-run.c
parent32558bc8072caa14ee670c6be40af4d183e8ffcc (diff)
parent934cdc32f4c828d6a8045e4096344601fe528a76 (diff)
downloadafl++-8551d8e48e18a5a50955945b5f73aff3cb492de5.tar.gz
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
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;