mirror of
https://github.com/sol1/rustguac.git
synced 2026-09-10 01:26:06 +00:00
1922bd9987
Add cargo-fuzz targets for the Guacamole protocol parser:
- protocol_parse: single instruction parsing
- protocol_stream: streaming parser with chunked input
Fix panic in Instruction::parse when a length prefix splits a multi-byte
UTF-8 character (found by fuzzer within seconds). Now returns
ParseError::Truncated instead of panicking on invalid char boundary.
Run with: cargo +nightly fuzz run protocol_parse
cargo +nightly fuzz run protocol_stream
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 lines
70 B
Rust
3 lines
70 B
Rust
/// Re-export modules for fuzz targets and testing.
|
|
pub mod protocol;
|