str0m's DTLS stack (dimpl) hard-codes the SRTP profile a DTLS server picks (AES-256-GCM first), with no way to configure it. Official TeamSpeak 6 clients use AES_CM_128_HMAC_SHA1_80, so we need to patch dimpl. This commit only vendors the crate as published and routes crates.io's dimpl to it; the change follows separately so it can be reviewed and dropped on its own. third_party is excluded from the workspace so dimpl's dev-dependencies and tests stay out of our builds, and own-crates.sh skips it like crates/proto. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Fuzz
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
# Allow manual trigger
|
|
workflow_dispatch:
|
|
# Run fuzz tests daily
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
fuzz:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- fuzz_dtls_packet
|
|
- fuzz_record_parse
|
|
- fuzz_dtls13_packet
|
|
- fuzz_dtls13_record_parse
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
- name: Install cargo-fuzz
|
|
run: cargo install cargo-fuzz
|
|
- name: Cache fuzz corpus
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: fuzz/corpus
|
|
key: fuzz-corpus-${{ matrix.target }}-${{ github.sha }}
|
|
restore-keys: |
|
|
fuzz-corpus-${{ matrix.target }}-
|
|
- name: Run fuzz target
|
|
run: |
|
|
cargo fuzz run ${{ matrix.target }} -- \
|
|
-max_total_time=60 \
|
|
-max_len=65536
|
|
- name: Upload crash artifacts
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: crash-${{ matrix.target }}
|
|
path: fuzz/artifacts/${{ matrix.target }}/
|