mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
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:
parent
30c5a9ef0b
commit
f5a52516b1
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue