Skip to content

SegmentBase getSegmentTimeUs does not perform a bounds check, results in out of bounds error #11014

Closed
@kamaroyl

Description

@kamaroyl

ExoPlayer Version

2.18.3

Devices that reproduce the issue

  • Pixel 6 Pro

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 into segmentTimeline 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

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions