vlc/vlc-1.1 | branch: master | Clément Lecigne <[email protected]> | Tue Mar 13 14:06:59 2012 +0200| [24e5885d226894611f2f1486c2d2a0be58137ca6] | committer: Rémi Denis-Courmont
ty: fix out of bound read on corrupt files Signed-off-by: Rémi Denis-Courmont <[email protected]> (cherry picked from commit 07616a8ecb95cdc0e3059b9b3f0c4a5393b1c773) > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=24e5885d226894611f2f1486c2d2a0be58137ca6 --- modules/demux/ty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/modules/demux/ty.c b/modules/demux/ty.c index 627ca94..a4a432d 100644 --- a/modules/demux/ty.c +++ b/modules/demux/ty.c @@ -418,7 +418,7 @@ static int Demux( demux_t *p_demux ) /* parse the next chunk's record headers */ if( p_sys->b_first_chunk || p_sys->i_cur_rec >= p_sys->i_num_recs ) { - if( get_chunk_header(p_demux) == 0 ) + if( get_chunk_header(p_demux) == 0 || p_sys->i_num_recs == 0 ) return 0; } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
