mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 20:19:07 +00:00
fuzz: block_fuzzer: add sparse param to Block::new
Fix the block_fuzzer build after CL:1906750, which added a new parameter to the Block::new() function without updating the fuzzer. This change passes `true` for sparse in order to keep previous behavior and maximize the available commands for fuzzing. BUG=chromium:1025757 TEST=`USE='asan fuzzer' emerge-nami crosvm` Change-Id: I29ed9945077936aee9636ddee20b59729eb78c85 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1922065 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
This commit is contained in:
parent
e73c80f355
commit
9093c002fe
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ fuzz_target!(|bytes| {
|
|||
|
||||
let shm = SharedMemory::anon().unwrap();
|
||||
let disk_file: File = shm.into();
|
||||
let mut block = Block::new(Box::new(disk_file), false, None).unwrap();
|
||||
let mut block = Block::new(Box::new(disk_file), false, true, None).unwrap();
|
||||
|
||||
block.activate(
|
||||
mem,
|
||||
|
|
Loading…
Reference in a new issue