[vlc-commits] demux: ttml: fix use after free (CID #1374347)

Tristan Matthews git at videolan.org
Tue Nov 1 23:47:35 CET 2016


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Nov  1 18:31:16 2016 -0400| [86015b8882abe8c2c391e3d6d33307235b74b556] | committer: Tristan Matthews

demux: ttml: fix use after free (CID #1374347)

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

 modules/demux/ttml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 069177d..e977d8a 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -712,6 +712,7 @@ static int ReadTTML( demux_t* p_demux )
                         goto error;
 
                     free( psz_text );
+                    psz_text = NULL;
                     ClearNode( p_node );
                 }
             }



More information about the vlc-commits mailing list