test: proptest property testing + cargo-fuzz fuzzing for donglora-cobs

This commit is contained in:
swaits committed 2026-03-30 10:57:57 -06:00
1 parent 1fbbf110bc
commit d7bb127d92
8 files changed
+567 -9

No files matched your search

@@ -0,0 +1,9 @@
//! Fuzz target: feed arbitrary bytes to decode(). Must never panic.
#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
let mut buf = [0u8; 2048];
// Must not panic — may return None on invalid input.
let _ = donglora_cobs::decode(data, &mut buf);
});