Commit 5a7b99d1 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

core/input: check for allocation error during bookmark parsing

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent f4b2930b
......@@ -423,6 +423,10 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
*psz_end = ',';
p_seekpoint = vlc_seekpoint_New();
if( unlikely( p_seekpoint == NULL ) )
break;
while( (psz_end = strchr( psz_start, ',' ) ) )
{
*psz_end = 0;
......
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