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
@@ -29,9 +29,9 @@ jobs:
|
||||
# and have known clippy findings (cleanup is milestone M1), so the strict
|
||||
# checks cover our own crates only.
|
||||
- name: rustfmt (own crates)
|
||||
run: cargo fmt -p tsctl --check
|
||||
run: cargo fmt $(scripts/own-crates.sh) --check
|
||||
- name: clippy (own crates, deny warnings)
|
||||
run: cargo clippy -p tsctl --all-targets --no-deps -- -D warnings
|
||||
run: cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps -- -D warnings
|
||||
- name: clippy (workspace, report only)
|
||||
run: cargo clippy --workspace --all-targets
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
name: Fuzz
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "17 3 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
fuzz:
|
||||
name: fuzz ${{ matrix.target }}
|
||||
runs-on: ubuntu-24.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target: [packet, command, license]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install nightly and cargo-fuzz
|
||||
run: |
|
||||
rustup toolchain install nightly --profile minimal
|
||||
cargo install cargo-fuzz --locked
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: fuzz
|
||||
- name: Fuzz for 10 minutes
|
||||
working-directory: fuzz
|
||||
run: cargo +nightly fuzz run ${{ matrix.target }} -- -max_total_time=600
|
||||
- name: Upload crash artifacts
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: fuzz-${{ matrix.target }}-artifacts
|
||||
path: fuzz/artifacts/
|
||||
Reference in new issue
Block a user