Skip to content

Conversation

@TTtie
Copy link
Member

@TTtie TTtie commented Nov 8, 2025

Fixes an incorrect calculation of voice padding introduced with 618f306, where the last byte was incorrectly unwrapped into a typed array.

Ref: abalabahaha/eris#1558 (comment)
Ref: https://datatracker.ietf.org/doc/html/rfc3550#section-5.1

Fixes an incorrect calculation of voice padding introduced with 618f306, where the last byte was incorrectly unwrapped into a typed array.

Ref: abalabahaha/eris#1558 (comment)
Ref: https://datatracker.ietf.org/doc/html/rfc3550#section-5.1
@TTtie TTtie added this to the 0.2.4 milestone Nov 8, 2025
@TTtie TTtie added the type: bug Something isn't working label Nov 8, 2025
@TTtie TTtie added this to To-do Nov 8, 2025
@TTtie TTtie added the scope: voice Issues or pull requests related to voice functionality label Nov 8, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in To-do Nov 8, 2025
@TTtie TTtie moved this from Untriaged to Ready for review in To-do Nov 8, 2025
@TTtie TTtie merged commit 11cf04e into dev Nov 10, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in To-do Nov 10, 2025
@TTtie TTtie deleted the fix/voice-incorrect-padding branch November 10, 2025 12:32
TTtie pushed a commit that referenced this pull request Nov 17, 2025
This is rare, but sometimes some packets are given with *only* padding
inside them, #229 fixed the issue of handling padding properly so that
it's not passed to the `data` event, but empty buffers while in a DAVE
session leads to failed decryptions. This usually occurs in
Cloudflare-ran voice servers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: voice Issues or pull requests related to voice functionality type: bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants