Fix BytesDeleteMutator (#1585)

This commit is contained in:
Dongjia "toka" Zhang 2023-09-30 00:25:12 +02:00 committed by GitHub
parent 0932421020
commit 70b75e7fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,7 +491,7 @@ where
return Ok(MutationResult::Skipped);
}
let range = rand_range(state, size, size);
let range = rand_range(state, size, size - 1);
input.bytes_mut().drain(range);