[vlc-commits] access: dvb: scan: check private data specifier descriptor

Francois Cartegnie git at videolan.org
Sun Apr 10 13:56:12 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Apr  7 14:03:03 2016 +0200| [bdebc8ca7b7b234b76aefb76716955ed4fd65a16] | committer: Francois Cartegnie

access: dvb: scan: check private data specifier descriptor

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

 modules/access/dvb/scan.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 8b2ed8b..9430a90 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -1003,7 +1003,8 @@ void scan_session_Destroy( scan_t *p_scan, scan_session_t *p_session )
 
             for( p_dsc = p_ts->p_first_descriptor; p_dsc != NULL; p_dsc = p_dsc->p_next )
             {
-                if( p_dsc->i_tag == 0x5f )
+                /* Private data specifier descriptor */
+                if( p_dsc->i_tag == 0x5f && p_dsc->i_length > 3 )
                 {
                     i_private_data_id = GetDWBE( &p_dsc->p_data[0] );
                 }



More information about the vlc-commits mailing list