]> git.sesse.net Git - vlc/commitdiff
playlist_pls: fix use after free (can be triggered by some invalid shoutcast playlist...
authorRémi Duraffort <ivoire@videolan.org>
Thu, 17 Jun 2010 19:20:25 +0000 (21:20 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 17 Jun 2010 19:20:25 +0000 (21:20 +0200)
modules/demux/playlist/pls.c

index ac5d99a5b4d50e1c96621b46404fe0ea5ae09304..20a6f52a945b7b1662f9d4861a33fe9fed09af66 100644 (file)
@@ -147,7 +147,7 @@ static int Demux( demux_t *p_demux )
                 input_item_node_AppendItem( p_subitems, p_input );
                 vlc_gc_decref( p_input );
                 free( psz_mrl_orig );
-                psz_mrl_orig = NULL;
+                psz_mrl_orig = psz_mrl = NULL;
             }
             else
             {
@@ -204,7 +204,6 @@ static int Demux( demux_t *p_demux )
         input_item_node_AppendItem( p_subitems, p_input );
         vlc_gc_decref( p_input );
         free( psz_mrl_orig );
-        psz_mrl = NULL;
     }
     else
     {