[vlc-commits] access: dvb: scan fix illegal access (cid #1362073)
Francois Cartegnie
git at videolan.org
Wed May 25 15:59:38 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 25 15:49:35 2016 +0200| [ee2f09efe89da84a49bba8220be4797f157e78b6] | committer: Francois Cartegnie
access: dvb: scan fix illegal access (cid #1362073)
since defined values have changed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee2f09efe89da84a49bba8220be4797f157e78b6
---
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 6394d99..52a9aa0 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -1261,7 +1261,7 @@ static void ParseNIT( vlc_object_t *p_obj, scan_t *p_scan,
{
tscfg.i_frequency = decode_BCD( p_s->i_frequency ) * 1000;
tscfg.i_symbolrate = decode_BCD( p_s->i_symbol_rate ) * 100;
- if( p_s->i_polarization > SCAN_POLARIZATION_CIRC_RIGHT )
+ if( unlikely(p_s->i_polarization > 0x03) )
p_s->i_polarization = 0;
const scan_polarization_t polarizations[] = {
More information about the vlc-commits
mailing list