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

mp4 crash fix #968

Merged
merged 3 commits into from
Jun 23, 2016
Merged

mp4 crash fix #968

merged 3 commits into from
Jun 23, 2016

Conversation

daschuer
Copy link
Member

This is a fix for https://bugs.launchpad.net/mixxx/+bug/1594169

It turns out that Mixxx crashes, because of a rethrowed exception.

I think it is better to consume the exception in this case, since crashing is not a good alternative here. The exception is most likely caused by an faulty file (like int this case). If the system is unstable, it can crash later ;-)

I have also added a plausibility check that completely avoid the bad_alloc exception from this bug.
I have not found a limit for SampleBlockSize in the mp4 docs, so I pick an insane value of 1 MB

// Limit to an insane high value of 1 MB,
// we got 4278190742 in https://bugs.launchpad.net/mixxx/+bug/1594169
// TODO() set this to the mp4 maximum allowed block size, if there is one
qWarning() << "maxSampleBlockInputSize is to big:" << maxSampleBlockInputSize << getUrlString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/to/too/

@rryan
Copy link
Member

rryan commented Jun 23, 2016

thanks for the fix @daschuer !

@rryan rryan merged commit 0c21b31 into mixxxdj:master Jun 23, 2016
@daschuer daschuer deleted the maxSampleBlockInputSize branch September 7, 2021 21:05
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.

None yet

3 participants