summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-09-03 10:20:56 -0700
committerCommit Bot <commit-bot@chromium.org>2019-09-03 21:08:38 +0000
commitf5a52516b1496533ef75ef181575faf891f8dc1a (patch)
treef2d6e44533e37960ea9489bd5d47997fb85ead63
parent30c5a9ef0b2ca7edeed36cc7ff8235a8d75e1595 (diff)
downloadcrosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.tar
crosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.tar.gz
crosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.tar.bz2
crosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.tar.lz
crosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.tar.xz
crosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.tar.zst
crosvm-f5a52516b1496533ef75ef181575faf891f8dc1a.zip
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>
-rw-r--r--fuzz/block_fuzzer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/block_fuzzer.rs b/fuzz/block_fuzzer.rs
index f315a87..6e5d983 100644
--- a/fuzz/block_fuzzer.rs
+++ b/fuzz/block_fuzzer.rs
@@ -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,