Commit 5cdfc67b authored by Rémi Duraffort's avatar Rémi Duraffort

playlist_pls: fix use after free (can be triggered by some invalid shoutcast playlist files).

(cherry picked from commit e1ff44d2)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent b5e19c1a
......@@ -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
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment