#![no_main] use bendncode::from_bytes; use libfuzzer_sys::fuzz_target; use serde_json::{from_slice, Value}; fuzz_target!(|data: &[u8]| { if let Ok(x_) = from_bytes::(data) { let x = bendncode::to_bytes(&x_).unwrap(); let y = from_bytes::(&x).unwrap(); assert_eq!(x_, y, "{data:?}: {x:?}: {x_}: {y}"); } });