Commit 74d34b63 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XSPF: fix realloc() integer overflow

(cherry picked from commit cd929923ff49175a501bb3e9553a683bc42ff61c)
parent 50d38b6d
...@@ -504,7 +504,8 @@ static bool parse_track_node COMPLEX_INTERFACE ...@@ -504,7 +504,8 @@ static bool parse_track_node COMPLEX_INTERFACE
} }
free( psz_uri ); free( psz_uri );
if( p_sys->i_track_id < 0 ) if( p_sys->i_track_id < 0
|| p_sys->i_track_id >= (SIZE_MAX / sizeof(p_new_input)) )
{ {
input_item_node_AppendNode( p_input_node, p_new_node ); input_item_node_AppendNode( p_input_node, p_new_node );
vlc_gc_decref( p_new_input ); vlc_gc_decref( p_new_input );
......
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