fixed bug in mutator
This commit is contained in:
parent
89c4fc184c
commit
a0f186232e
@ -467,7 +467,7 @@ where
|
|||||||
|
|
||||||
let off = rand.below(size as u64) as usize;
|
let off = rand.below(size as u64) as usize;
|
||||||
let len = rand.below((size - off) 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)
|
Ok(MutationResult::Mutated)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user