feat: complete wgcloak v1 transports

This commit is contained in:
h3cx committed 2026-09-19 19:47:16 +02:00
1 parent 49ec9d8c33
commit cedab4910e
47 files changed
+2849 -400

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use wgcloak::config::Config;
const MAX_INPUT: usize = 64 * 1024;
fuzz_target!(|input: &[u8]| {
let input = &input[..input.len().min(MAX_INPUT)];
// Parsing only: Config::from_str never reads secret files. Validation is
// intentionally not called because it may resolve file-backed secrets.
if let Ok(text) = std::str::from_utf8(input) {
let _ = Config::from_str(text);
}
});