[vlc-devel] [PATCH] mpg123: fix uninitialized read in DecodeBlock

Tristan Matthews tmatth at videolan.org
Thu Oct 27 18:49:17 CEST 2016


Caught with valgrind.
---
 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;
-- 
2.9.3



More information about the vlc-devel mailing list