-
Notifications
You must be signed in to change notification settings - Fork 6k
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
SegmentBase getSegmentTimeUs does not perform a bounds check, results in out of bounds error #11014
Comments
The attached MPD fails to parse because it has |
Ah, apologies, that was an early pass when the packager was putting in the wrong id. I'm able to reproduce by hosting this mpd with a python simple http server and setting the ExoPlayer demo to allow clear text traffic. |
Thanks, we'll provide a fix for this. |
Segment timelines are technically allowed to be empty, but not all places add the necessary checks. Issue: #11014 PiperOrigin-RevId: 514722205
Segment timelines are technically allowed to be empty, but not all places add the necessary checks. Issue: google/ExoPlayer#11014 PiperOrigin-RevId: 514722205
Segment timelines are technically allowed to be empty, but not all places add the necessary checks. Issue: google/ExoPlayer#11014 PiperOrigin-RevId: 514722205 (cherry picked from commit 788132b)
ExoPlayer Version
2.18.3
Devices that reproduce the issue
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Provide a dash manifest with an empty segmentTimeline,
getSegmentTimeUs
attempts to index intosegmentTimeline
which is empty, resulting in an out of bounds error.Expected result
Something other than an out of bounds error, perhaps an error or warn that the segmentTimeline is empty.
Actual result
Index out of bounds exception
Media
This was the mpd in question. May violate DASH spec, but a more useful error would be appreciated
DASH_EXAMPLE.zip
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.The text was updated successfully, but these errors were encountered: