]> git.sesse.net Git - vlc/commitdiff
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 260ea485486f7a323a7c766ab72b58a6877ade15..61102ecfe4c1f0535b3d79d68b4f1a7f9d0284c4 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--;
                     }
                 }