Skip to content

fix: reject I420 buffer sizes WebRTC cannot allocate - #436

Merged
devopvoid merged 1 commit into
mainfrom
fix/i420-allocate-dimensions
Oct 24, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/i420-allocate-dimensions

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

NativeI420Buffer.allocate() passed width and height straight to I420Buffer::Create(), which aborts the process via RTC_CHECK on non-positive dimensions or when the planes don't fit in an int. It now throws an IllegalArgumentException for these sizes instead.

@devopvoid
devopvoid merged commit 073a61e into main Oct 24, 2026
8 of 14 checks passed
@devopvoid
devopvoid deleted the fix/i420-allocate-dimensions branch October 24, 2026 11:55
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