demux: ogg: avoid use-after-free
authorTristan Matthews <tmatth@videolan.org>
Sun, 2 Nov 2014 22:51:30 +0000 (17:51 -0500)
committerTristan Matthews <tmatth@videolan.org>
Sun, 2 Nov 2014 22:51:30 +0000 (17:51 -0500)
modules/demux/ogg.c

index 260ea48..61102ec 100644 (file)
@@ -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--;
                     }
                 }