fuzz: Wrap params of FilePair with Arc

The construction of `FilePair` in `virtio_devices` component has changed
in 287887c, wrapping the parameters with `Arc` to fix fuzz build.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2024-09-27 03:13:54 +00:00 committed by Rob Bradford
parent 5a70d7ec69
commit f436231cba

View File

@ -66,7 +66,7 @@ fuzz_target!(|bytes| {
memfd_create(&std::ffi::CString::new("fuzz_console_output").unwrap()).unwrap(),
)
};
let endpoint = virtio_devices::Endpoint::FilePair(output, pipe_rx);
let endpoint = virtio_devices::Endpoint::FilePair(Arc::new(output), Arc::new(pipe_rx));
let (mut console, _) = virtio_devices::Console::new(
"fuzzer_console".to_owned(),