mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:10:44 +00:00
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>
14 lines
352 B
Rust
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);
|
|
});
|