From 5745961212f62053469e600e51fee3f65324b2fe Mon Sep 17 00:00:00 2001 From: Devon Kirk Date: Tue, 16 Jun 2026 14:32:10 -0400 Subject: [PATCH] stream/bluray: fix off-by-one in angle count bounds check --- stream/stream_bluray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c index b28f452675537..6b8df49a2a64a 100644 --- a/stream/stream_bluray.c +++ b/stream/stream_bluray.c @@ -260,7 +260,7 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg) if (!ti) return STREAM_UNSUPPORTED; int angle = *((int *) arg); - if (angle < 0 || angle > ti->angle_count) + if (angle < 0 || angle >= ti->angle_count) return STREAM_UNSUPPORTED; b->current_angle = angle; bd_seamless_angle_change(b->bd, angle);