Repository navigation
fix: harden audio blocks, JNI boundaries and channel limits - #564
Merged
Merged
Conversation
Reject sample rates that cannot represent exact 10 ms blocks, enforce DataChannel reliability limits before conversion, and cap reusable encoded-frame scratch memory. Protect all regular core JNI entry points with complete exception boundaries and guard the convention with a structural CI check and allocation-failure regression coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reject sampling rates that cannot represent exact 10 ms audio blocks across the converter, resampler, custom source and audio-processing configuration. Validate DataChannel lifetimes before millisecond conversion, document fractional rounding and enforce the native 65535 limits.
Guard every regular core JNI entry point with a complete C++ exception boundary, including simple getters, and add deterministic handle-allocation fault coverage. Limit per-thread encoded-frame scratch retention to 256 KiB and allocate larger payload copies temporarily. Update the audio, channel and transform guides and add regression coverage.