[vlc-devel] [PATCH] demux/vobsub: Fix out-of-bounds array read
Marvin Scholz
epirat07 at gmail.com
Tue Dec 10 13:43:30 CET 2019
---
modules/demux/vobsub.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/vobsub.c b/modules/demux/vobsub.c
index ba247d9a10..1597c4109c 100644
--- a/modules/demux/vobsub.c
+++ b/modules/demux/vobsub.c
@@ -290,6 +290,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys->track[i].p_es, &b_selected );
if( b_selected ) break;
}
+ if (i >= p_sys->i_tracks) {
+ /* No selected ES found */
+ return VLC_EGENERIC;
+ }
if( p_sys->track[i].i_current_subtitle >= p_sys->track[i].i_subtitles )
{
*pf = 1.0;
--
2.20.1 (Apple Git-117)
More information about the vlc-devel
mailing list