mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
fuzz: Use RawDisk for block fuzz target
Update the fuzz target to use RawDisk instead of RawFileDiskSync, consistent with the unified API. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
@@ -16,7 +16,7 @@ use std::sync::Arc;
|
||||
use std::{ffi, io};
|
||||
|
||||
use block::fcntl::LockGranularityChoice;
|
||||
use block::raw_sync::RawFileDiskSync;
|
||||
use block::raw_disk::{RawBackend, RawDisk};
|
||||
use libfuzzer_sys::{fuzz_target, Corpus};
|
||||
use seccompiler::SeccompAction;
|
||||
use virtio_devices::{Block, VirtioDevice, VirtioInterrupt, VirtioInterruptType};
|
||||
@@ -54,7 +54,7 @@ fuzz_target!(|bytes: &[u8]| -> Corpus {
|
||||
let queue_affinity = BTreeMap::new();
|
||||
let mut block = Block::new(
|
||||
"tmp".to_owned(),
|
||||
Box::new(RawFileDiskSync::new(disk_file)),
|
||||
Box::new(RawDisk::new(disk_file, RawBackend::Sync)),
|
||||
PathBuf::from(""),
|
||||
false,
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user