mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
1eedd1bfb4
The block, qcow, and zimage fuzzers all created a SharedMemory and then converted it into a file; with the new base API changes, this is no longer supported. Replace the SharedMemory uses with tempfile to fix the build (this also simplifies the code). BUG=chromium:1136895 TEST=`FEATURES=test USE='asan fuzz' emerge-amd64-generic crosvm` Change-Id: I50d4e8c57ed41419c79a3fac440654224696f80c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2463895 Reviewed-by: Dylan Reid <dgreid@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
49 lines
982 B
TOML
49 lines
982 B
TOML
[package]
|
|
name = "crosvm-fuzz"
|
|
version = "0.0.1"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
cros_fuzz = "*"
|
|
data_model = { path = "../data_model" }
|
|
devices = { path = "../devices" }
|
|
disk = { path = "../disk" }
|
|
kernel_loader = { path = "../kernel_loader" }
|
|
libc = "*"
|
|
rand = "0.6"
|
|
base = { path = "../base" }
|
|
tempfile = { path = "../tempfile" }
|
|
usb_util = { path = "../usb_util" }
|
|
vm_memory = { path = "../vm_memory" }
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "crosvm_block_fuzzer"
|
|
path = "block_fuzzer.rs"
|
|
|
|
[[bin]]
|
|
name = "crosvm_fs_server_fuzzer"
|
|
path = "fs_server_fuzzer.rs"
|
|
|
|
[[bin]]
|
|
name = "crosvm_qcow_fuzzer"
|
|
path = "qcow_fuzzer.rs"
|
|
|
|
[[bin]]
|
|
name = "crosvm_usb_descriptor_fuzzer"
|
|
path = "usb_descriptor_fuzzer.rs"
|
|
|
|
[[bin]]
|
|
name = "crosvm_virtqueue_fuzzer"
|
|
path = "virtqueue_fuzzer.rs"
|
|
|
|
[[bin]]
|
|
name = "crosvm_zimage_fuzzer"
|
|
path = "zimage_fuzzer.rs"
|
|
|
|
[patch.crates-io]
|
|
base = { path = "../base" }
|