[vlc-devel] [PATCH 1/3] demux: ts: fix uninitialized fields (fix #15319)

Hannes Domani ssbssa at yahoo.de
Fri Jan 15 15:49:45 CET 2016


---
 modules/demux/mpeg/ts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 3276584..342770f 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -4500,7 +4500,7 @@ static void PMTSetupEsDvbSubtitle( demux_t *p_demux, ts_pes_t *p_pes,
             }
             else
             {
-                p_subs_es = malloc( sizeof(*p_subs_es) );
+                p_subs_es = calloc( 1, sizeof(*p_subs_es) );
                 if( !p_subs_es )
                     break;
 
-- 
2.7.0



More information about the vlc-devel mailing list