Skip to content

fix: harden audio blocks, JNI boundaries and channel limits - #564

Merged
devopvoid merged 3 commits into
mainfrom
fix/audio-jni-channel-validation
Nov 7, 2026
Merged

devopvoid merged 3 commits into
mainfrom
fix/audio-jni-channel-validation

Conversation

@devopvoid

@devopvoid devopvoid commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

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.

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.
@devopvoid
devopvoid merged commit 8aa2c5c into main Nov 7, 2026
25 of 26 checks passed
@devopvoid
devopvoid deleted the fix/audio-jni-channel-validation branch November 7, 2026 18:09
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.

1 participant