Skip to content

Fix invalid channel count fuzzer crash#419

Merged
pdeljanov merged 3 commits intopdeljanov:masterfrom
baylesj:fix-fuzzer-decoder-crash
Dec 19, 2025
Merged

Fix invalid channel count fuzzer crash#419
pdeljanov merged 3 commits intopdeljanov:masterfrom
baylesj:fix-fuzzer-decoder-crash

Conversation

@baylesj
Copy link
Copy Markdown
Contributor

@baylesj baylesj commented Dec 18, 2025

This patch fixes a crash where a FLAC buffer with an invalid channel count causes an abort. Instead, a proper decode error is returned.

See public fuzzer bug here:
http://crbug.com/468277952

@baylesj
Copy link
Copy Markdown
Contributor Author

baylesj commented Dec 19, 2025

Verified fixed in Chrome with the fuzzer. Please LMK if there's any additional coverage that would be helpful.

@pdeljanov, PTAL?

@pdeljanov pdeljanov merged commit 18dc49d into pdeljanov:master Dec 19, 2025
8 of 11 checks passed
@pdeljanov
Copy link
Copy Markdown
Owner

Thanks for finding and fix this!

@baylesj baylesj deleted the fix-fuzzer-decoder-crash branch January 13, 2026 01:36
@baylesj
Copy link
Copy Markdown
Contributor Author

baylesj commented Jan 13, 2026

Of course! Looking forward to upstreaming more fixes.

M0Rf30 pushed a commit to M0Rf30/Symphonia that referenced this pull request Feb 1, 2026
Ensure the channel count for a decoded FLAC frame matches the channel
count of the output buffer (derived from the stream info).
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