Files
betterxen/fuzz/fuzz_targets/runtime_services.rs
Adeeb Rahman b3a6a57a8e 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>
Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 3027b9eb06904793c464b80490aa3903bfe7e173)
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 10:33:26 -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);
});