vlc | branch: master | Tristan Matthews <tma...@videolan.org> | Sun Nov  2 
17:51:30 2014 -0500| [ba65ae57333c6252b9288cfa8e10a52d4082e51c] | committer: 
Tristan Matthews

demux: ogg: avoid use-after-free

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 260ea48..61102ec 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1612,6 +1612,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
                     {
                         msg_Dbg( p_demux, "found invalid Daala header" );
                         Ogg_LogicalStreamDelete( p_demux, p_stream );
+                        p_stream = NULL;
                         p_ogg->i_streams--;
                     }
                 }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to