Repository navigation
fix(telegram): parse Ogg Opus packet offset - #6872
Conversation
53f455a to
2eef34c
Compare
looks_like_ogg_opus() parses attacker/network-controlled bytes from Telegram voice uploads, so add a test that walks every possible truncation of a valid page and asserts it is rejected without panicking, alongside a few malformed/too-short inputs.
|
Automated daily review pass.
One minor, non-blocking note: the body of Generated by Claude Code |
Comments were hard-wrapped mid-sentence instead of one sentence per line.
Summary
Verification
cargo test --manifest-path sdk/rust/librefang-sidecar-telegram/Cargo.toml ogg_opus_detection_uses_the_first_packet_offsetcargo test --manifest-path sdk/rust/librefang-sidecar-telegram/Cargo.toml --all-targetscargo clippy --manifest-path sdk/rust/librefang-sidecar-telegram/Cargo.toml --all-targets -- -D warningsgit diff --check