fixed bug in mutator

This commit is contained in:
Dominik Maier 2020-12-10 21:03:39 +01:00
parent 89c4fc184c
commit a0f186232e

View File

@ -467,7 +467,7 @@ where
let off = rand.below(size as u64) as usize;
let len = rand.below((size - off) as u64) as usize;
input.bytes_mut().drain(off..len);
input.bytes_mut().drain(off..off + len);
Ok(MutationResult::Mutated)
}