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 additional crashes. #66

Merged
merged 2 commits into from
Oct 9, 2020
Merged

Conversation

awesie
Copy link
Contributor

@awesie awesie commented Oct 9, 2020

Fixes #58 and an additional crash found with afl-fuzz.

I'm not a huge fan of the either fix in terms of elegance, but they should are simple and straight forward to understand.

hInfo->error is reset within the decode_* functions. This caused the decoder
to ignore errors for some channels in the error resilience (ER) code path.

Fixes knik0#58.
The frontend does not support audio output when the number of channels
changes between frames. Check if the number of decoded channels matches the
number of audio output channels.

It is possible that this condition should be detected in the decoder instead
of the frontend.

Fixes crash from afl-fuzz.
@fabiangreffrath fabiangreffrath merged commit e8aa1c9 into knik0:master Oct 9, 2020
@fabiangreffrath
Copy link
Collaborator

Thank you very much for this!

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.

A Segmentation fault in output.c:49:16
2 participants