M1: dalek 4, fuzzing and fixes, tsc-model with server flavor
- curve25519-dalek-ng -> curve25519-dalek 4. - fuzz/: cargo-fuzz targets for packets, commands and the license chain, plus a nightly workflow. Fixes for the panics they found: empty license, unchecked license property bounds, wrong index in the C2S audio invalid-codec error. - tsc-model: ServerVersion/ServerFlavor/Capabilities parsed from virtualserver_version; tsctl shows the flavor in the tree header. - CI lints every non-vendored crate via scripts/own-crates.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
369cbde85d
commit
aa19afbcd0
24 files changed
+1835
-57
No files matched your search
@@ -0,0 +1,15 @@
|
||||
//! Raw UDP packets from the server.
|
||||
#![no_main]
|
||||
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use tsproto_packets::packets::{Direction, InPacket};
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
for dir in [Direction::S2C, Direction::C2S] {
|
||||
if let Ok(packet) = InPacket::try_new(dir, data) {
|
||||
let _ = format!("{packet:?}");
|
||||
let _ = packet.header().packet_type();
|
||||
let _ = packet.ack_packet();
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user