Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sporadic ArrayIndexOutOfBoundsException #24

Merged

Conversation

devoxin
Copy link
Contributor

@devoxin devoxin commented Apr 15, 2024

An opus packet may have a length of up to 1275 bytes. There is additional padding for the box operation, of up to 32 bytes as defined here: https://github.com/InstantWebP2P/tweetnacl-java/blob/master/src/main/java/com/iwebpp/crypto/TweetNaclFast.java#L583

This has been tested and opus frames that would previously cause this error, no longer do.

@alula alula merged commit 3119a94 into KyokoBot:master Apr 19, 2024
@topi314 topi314 deleted the fix-arrayindexoutofboundsexception branch April 27, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants