crosvm/crosvm-fuzz/Cargo.toml
Zihan Chen 646b6ea8fa crosvm-fuzz: Migrate crosvm-fuzz to cargo fuzz
Fuzzer targets can be ran with
cargo +nightly fuzz run --fuzz-dir crosvm-fuzz --features
upstream-fuzz <target>

This should enable us to move fuzzing to anywhere including
ClusterFuzz while maintain compatibility with cros infra.

TEST=`cargo fuzz` won't crash in first 30s,
`USE="asan fuzzer" emerge-hatch crosvm` builds,
`/build/hatch/usr/libexec/fuzzers/crosvm_qcow_fuzzer` won't
crash in first 30s
FIXED=b:245007212
BUG=b:244631591

Change-Id: I4b262ee1a6a90247dea96347c55a3849af793bec
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3905095
Auto-Submit: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2022-10-03 16:12:15 +00:00

52 lines
1 KiB
TOML

[package]
name = "crosvm-fuzz"
version = "0.0.1"
authors = ["The Chromium OS Authors"]
edition = "2021"
[package.metadata]
cargo-fuzz = true
[dependencies]
cros_fuzz = { path = "../common/cros-fuzz" }
data_model = { path = "../common/data_model" }
devices = { path = "../devices" }
disk = { path = "../disk" }
fuse = { path = "../fuse" }
hypervisor = { path = "../hypervisor" }
kernel_loader = { path = "../kernel_loader" }
libc = "*"
rand = "0.8"
base = { path = "../base" }
tempfile = "3"
usb_util = { path = "../usb_util" }
vm_memory = { path = "../vm_memory" }
[features]
upstream-fuzz = ["cros_fuzz/upstream-fuzz"]
default = ["disk/qcow"]
[[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"