refactor: modularize codebase and add 404 unit tests (#13)
All checks were successful
CI / Format (push) Successful in 4s
CI / Clippy (push) Successful in 4m19s
CI / Security Audit (push) Successful in 1m44s
CI / Detect Changes (push) Successful in 5s
CI / Tests (push) Successful in 5m15s
CI / Deploy Agent (push) Successful in 2s
CI / Deploy Dashboard (push) Successful in 2s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Successful in 2s
All checks were successful
CI / Format (push) Successful in 4s
CI / Clippy (push) Successful in 4m19s
CI / Security Audit (push) Successful in 1m44s
CI / Detect Changes (push) Successful in 5s
CI / Tests (push) Successful in 5m15s
CI / Deploy Agent (push) Successful in 2s
CI / Deploy Dashboard (push) Successful in 2s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Successful in 2s
This commit was merged in pull request #13.
This commit is contained in:
16
fuzz/Cargo.toml
Normal file
16
fuzz/Cargo.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
[package]
|
||||
name = "compliance-fuzz"
|
||||
version = "0.0.0"
|
||||
publish = false
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
libfuzzer-sys = "0.4"
|
||||
compliance-core = { path = "../compliance-core" }
|
||||
|
||||
# Fuzz targets are defined below. Add new targets as [[bin]] entries.
|
||||
|
||||
[[bin]]
|
||||
name = "fuzz_finding_dedup"
|
||||
path = "fuzz_targets/fuzz_finding_dedup.rs"
|
||||
doc = false
|
||||
12
fuzz/fuzz_targets/fuzz_finding_dedup.rs
Normal file
12
fuzz/fuzz_targets/fuzz_finding_dedup.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
#![no_main]
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
|
||||
// Example fuzz target stub for finding deduplication logic.
|
||||
// Replace with actual dedup function calls once ready.
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
if let Ok(s) = std::str::from_utf8(data) {
|
||||
// TODO: Call dedup/fingerprint functions with fuzzed input
|
||||
let _ = s.len();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user