vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Mon Feb 15 
16:37:23 2016 +0100| [a8246c282f320ad48747d71bbc133bd4a3ba4400] | committer: 
Hugo Beauzée-Luyssen

ts: Fix out of bound read

cid #1352638

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8246c282f320ad48747d71bbc133bd4a3ba4400
---

 modules/demux/mpeg/ts_psip.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts_psip.c b/modules/demux/mpeg/ts_psip.c
index d9b8050..2ba5b2f 100644
--- a/modules/demux/mpeg/ts_psip.c
+++ b/modules/demux/mpeg/ts_psip.c
@@ -278,7 +278,7 @@ static const char * const rgpsz_ATSC_A53_service_types[] =
 
 static const char * ATSC_A53_get_service_type( uint8_t i_type )
 {
-    if( i_type == 0 || i_type > 6 )
+    if( i_type == 0 || i_type > 5 )
         return NULL;
     return rgpsz_ATSC_A53_service_types[i_type - 1];
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to