Add three new fuzz targets expanding coverage from 2 to 5 targets: - fuzz_webhook_payload: fuzzes webhook body JSON deserialization - fuzz_provider_response: fuzzes provider API response parsing - fuzz_command_validation: fuzzes security policy command validation Addresses audit findings for critical fuzz coverage gaps in gateway, provider, and security subsystems. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
10 lines
280 B
Rust
10 lines
280 B
Rust
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
use zeroclaw::security::SecurityPolicy;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Ok(s) = std::str::from_utf8(data) {
|
|
let policy = SecurityPolicy::default();
|
|
let _ = policy.validate_command_execution(s, false);
|
|
}
|
|
});
|