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

Application stucks when reading large mp4 files #13

Open
lonely-lockley opened this issue Feb 23, 2019 · 0 comments · May be fixed by #14
Open

Application stucks when reading large mp4 files #13

lonely-lockley opened this issue Feb 23, 2019 · 0 comments · May be fixed by #14

Comments

@lonely-lockley
Copy link

Application stucks forever when parsing media boxes larger tan 2Gb. No exceptions generated. This happens with RandomAccessFile sources only.
The problem is in MP4InputStream.skipBytes() method:

while(l<n) {
        if(in!=null) l += in.skip((n-l));
        else if(fin!=null) l += fin.skipBytes((int) (n-l));
}

This cast to int on line 3 causes int to overflow and skipBytes always returns zero as a result which leads to an endless cycle.

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 a pull request may close this issue.

1 participant