Files
wickra/fuzz/fuzz_targets/binance_envelope.rs
T

14 lines
462 B
Rust
Raw Normal View History

2026-05-22 16:44:19 +02:00
#![no_main]
//! Fuzz the Binance combined-stream envelope deserializer.
//!
//! `RawWsEnvelope` is what a kline frame is decoded into; feeding it
//! arbitrary strings exercises the serde path that runs on every WebSocket
//! frame. It must reject malformed input with an `Err`, never panic.
use libfuzzer_sys::fuzz_target;
use wickra_data::live::binance::RawWsEnvelope;
fuzz_target!(|data: &str| {
let _ = serde_json::from_str::<RawWsEnvelope>(data);
});