[vlc-commits] commit: Fixed potential use of non initialized value in corrupted nuv files . (Laurent Aimar )

git at videolan.org git at videolan.org
Tue Nov 2 21:20:44 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Nov  2 21:16:42 2010 +0100| [bc19735206f7520b20e53c7935cb06fea9b43e4b] | committer: Laurent Aimar 

Fixed potential use of non initialized value in corrupted nuv files.

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

 modules/demux/nuv.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index 3fbcfa5..40b5aa0 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -809,6 +809,10 @@ static int SeekTableLoad( demux_t *p_demux, demux_sys_t *p_sys )
 
             i_kfa_elements = fh.i_length / 8;
         }
+        else
+        {
+            i_kfa_elements = 0;
+        }
     }
     else
     {



More information about the vlc-commits mailing list