Files
betterxen/fuzz/fuzz_targets/runtime_services.rs
T
Adeeb Rahman a4307f905a Fuzz the standard guest service registry
Drive random service call sequences with adversarial arguments and
check memory and register invariants after every call. The libFuzzer
target and a stable replay test share one driver.

Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 10:14:40 -05:00

14 lines
352 B
Rust

// SPDX-License-Identifier: GPL-3.0-or-later
#![no_main]
#[path = "../../crates/loader/tests/support/robustness.rs"]
mod robustness;
use libfuzzer_sys::fuzz_target;
use std::sync::OnceLock;
fuzz_target!(|data: &[u8]| {
static DRIVER: OnceLock<robustness::Driver> = OnceLock::new();
DRIVER.get_or_init(robustness::Driver::new).run(data);
});