test: property tests and fuzz targets for untrusted input and the diff engine
Every parser of data Xexéu does not control must return an error, never panic; the diff engine's guarantees (no removal from a partial sweep, no closed port that was not scanned, disappearance exactly at the threshold) are now properties. The Weekly workflow runs cargo audit independently of pushes and fuzzes each target on a persistent corpus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0d4fe01baf
commit
b70f36da09
16 files changed
+2918
-4
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#![no_main]
|
||||
//! Targets, exclusions, scope entries and cron come from the config file and
|
||||
//! from the dashboard's group form.
|
||||
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use xexeu_core::schedule::{CronSpec, Jitter};
|
||||
use xexeu_core::targets::{parse_exclusion, parse_scope_entry, parse_target};
|
||||
|
||||
fuzz_target!(|text: &str| {
|
||||
let _ = parse_target(text);
|
||||
let _ = parse_exclusion(text);
|
||||
let _ = parse_scope_entry(text);
|
||||
let _ = CronSpec::parse(text);
|
||||
let _ = Jitter::parse(text);
|
||||
});
|
||||
Reference in new issue
Block a user