14 lines
489 B
Rust
14 lines
489 B
Rust
//! Fuzzes SDP payloads and the host capabilities read from them: never panics, whatever the bytes.
|
|
//! Phase A: the parser returns `Unimplemented`; QA adds the properties (round trips, caps) with the logic.
|
|
//! How to run: see the comment at the top of `fuzz/Cargo.toml`.
|
|
|
|
#![no_main]
|
|
|
|
use libfuzzer_sys::fuzz_target;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Ok(sdp) = domistream::rtsp::sdp::parse_sdp(data) {
|
|
let _ = domistream::rtsp::HostCapabilities::from_sdp(&sdp);
|
|
}
|
|
});
|