Skip to content

Commit 70b75e7

Browse files
authored
Fix BytesDeleteMutator (#1585)
1 parent 0932421 commit 70b75e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libafl/src/mutators/mutations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ where
491491
return Ok(MutationResult::Skipped);
492492
}
493493

494-
let range = rand_range(state, size, size);
494+
let range = rand_range(state, size, size - 1);
495495

496496
input.bytes_mut().drain(range);
497497

0 commit comments

Comments
 (0)