[vlc-commits] dvb-scan: fix potential buffer overflow

Rémi Duraffort git at videolan.org
Thu Jun 28 20:13:45 CEST 2012


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 25 11:15:57 2012 +0200| [396a1e896ff7307e721d5cfd616a55bc2fd950df] | committer: Rémi Duraffort

dvb-scan: fix potential buffer overflow

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

 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 5ad6187..ac9e888 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -308,7 +308,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
             int res;
             do
             {
-                if ( ( res = fscanf( f, "%c %d %c %d %s\n",
+                if ( ( res = fscanf( f, "%c %d %c %d %2s\n",
                             &type,
                             &p_transponders[*pi_count].i_frequency,
                             &p_transponders[*pi_count].c_polarization,



More information about the vlc-commits mailing list