[vlc-commits] demux: ogg: avoid use-after-free

Tristan Matthews git at videolan.org
Mon Nov 3 00:09:07 CET 2014


vlc | branch: master | Tristan Matthews <tmatth at 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--;
                     }
                 }



More information about the vlc-commits mailing list