[vlc-commits] demux: ts: fix uninitialized fields (fix #15319)

Hannes Domani git at videolan.org
Sat Jan 16 17:34:05 CET 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Jan 15 15:49:45 2016 +0100| [7e6fe7538db7b497cfb1ad2ae7328fb94e5e4a26] | committer: Jean-Baptiste Kempf

demux: ts: fix uninitialized fields (fix #15319)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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;
 



More information about the vlc-commits mailing list