[vlc-commits] access: dvb: scan: add missing check on private data descriptor
Francois Cartegnie
git at videolan.org
Fri Apr 15 10:58:05 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 15 10:54:36 2016 +0200| [c9550928e9ced9175073a91338127422cbd7f46b] | committer: Francois Cartegnie
access: dvb: scan: add missing check on private data descriptor
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9550928e9ced9175073a91338127422cbd7f46b
---
modules/access/dvb/scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index db3a3c9..80d0fff 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -972,7 +972,7 @@ static void ParseNIT( vlc_object_t *p_obj, scan_t *p_scan,
msg_Dbg( p_obj, " * modulation %u", tscfg.i_modulation );
}
}
- else if( p_dsc->i_tag == 0x5f )
+ else if( p_dsc->i_tag == 0x5f && p_dsc->i_length > 3 )
{
msg_Dbg( p_obj, " * private data specifier descriptor" );
i_private_data_id = GetDWBE( &p_dsc->p_data[0] );
More information about the vlc-commits
mailing list