[vlc-commits] mpg123: fix uninitialized read in DecodeBlock

Tristan Matthews git at videolan.org
Thu Oct 27 20:09:45 CEST 2016


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu Oct 27 12:47:11 2016 -0400| [b2d7708ccd6f1d83bb440ef8a77655799abd7736] | committer: Tristan Matthews

mpg123: fix uninitialized read in DecodeBlock

Caught with valgrind.

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

 modules/codec/mpg123.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/mpg123.c b/modules/codec/mpg123.c
index 3e806ab..559bf57 100644
--- a/modules/codec/mpg123.c
+++ b/modules/codec/mpg123.c
@@ -367,6 +367,8 @@ static int OpenDecoder( vlc_object_t *p_this )
         return VLC_ENOMEM;
 
     p_sys->p_out = NULL;
+    date_Set( &p_sys->end_date, VLC_TS_INVALID );
+
     /* Create our mpg123 handle */
     if( ( p_sys->p_handle = mpg123_new( NULL, NULL ) ) == NULL )
         goto error;



More information about the vlc-commits mailing list