Skip to content

stream/bluray: fix off-by-one in angle count bounds check#18139

Open
hyder365 wants to merge 1 commit into
mpv-player:masterfrom
hyder365:fix/bluray-angle-off-by-one
Open

stream/bluray: fix off-by-one in angle count bounds check#18139
hyder365 wants to merge 1 commit into
mpv-player:masterfrom
hyder365:fix/bluray-angle-off-by-one

Conversation

@hyder365

Copy link
Copy Markdown

angle_count is the total number of angles. Since angles are 0-indexed, the valid range is [0, angle_count-1]. The check used > instead of >=, allowing an out-of-bounds angle index to reach bd_seamless_angle_change.

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.

1 participant