vlc/vlc-2.0 | branch: master | Rémi Duraffort <[email protected]> | Mon Jun 
25 11:15:57 2012 +0200| [2752db79396f332a187689a60bfcf6b1fe83b4fc] | committer: 
Felix Paul Kühne

dvb-scan: fix potential buffer overflow
(cherry picked from commit 396a1e896ff7307e721d5cfd616a55bc2fd950df)

Signed-off-by: Felix Paul Kühne <[email protected]>

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

 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 5f75e58..704e701 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,

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

Reply via email to