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:
Daniel Verkamp 2019-11-18 09:28:00 -08:00 committed by Manoj Gupta
parent e73c80f355
commit 9093c002fe

View file

@ -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,