fuzz: fix block fuzzer build after block API change

Block::new() now takes a Box of the underlying file; update the block
fuzzer accordingly.

BUG=chromium:1000065
TEST=`USE='asan fuzzer' emerge-nami crosvm`

Change-Id: Ib636e13da5dcd347dd33c40a11508e016ea73b70
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1780336
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Daniel Verkamp 2019-09-03 10:20:56 -07:00 committed by Commit Bot
parent 30c5a9ef0b
commit f5a52516b1

View file

@ -91,7 +91,7 @@ pub fn test_one_input(data: *const u8, size: usize) -> i32 {
let shm = SharedMemory::new(None).unwrap();
let disk_file: File = shm.into();
let mut block = Block::new(disk_file, false, None).unwrap();
let mut block = Block::new(Box::new(disk_file), false, None).unwrap();
block.activate(
mem,