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:
Claude committed 2026-09-25 13:40:56 +00:00
1 parent 369cbde85d
commit aa19afbcd0
24 files changed
+1835 -57

No files matched your search

+7 -1
View File
@@ -4,6 +4,7 @@ use std::collections::HashMap;
use std::fmt::Write;
use tsclientlib::data;
use tsc_model::ServerFlavor;
use tsclientlib::{ChannelId, ClientType};
/// Minimal channel view, so the ordering logic can be tested without a connection.
@@ -114,7 +115,12 @@ pub fn from_state(state: &data::Connection) -> String {
streaming: c.is_streaming == Some(true),
})
.collect();
render(&state.server.name, &channels, &clients)
let flavor = match ServerFlavor::from_version_string(&state.server.version) {
ServerFlavor::Ts3(v) => format!("TeamSpeak 3 {v}"),
ServerFlavor::Ts6(v) => format!("TeamSpeak 6 {v}"),
ServerFlavor::Unknown(v) => format!("unknown version {v:?}"),
};
render(&format!("{} ({flavor})", state.server.name), &channels, &clients)
}
#[cfg(test)]