Skip to content

Commit 5a7b99d

Browse files
Filip Roséenjbkempf
authored andcommitted
core/input: check for allocation error during bookmark parsing
Signed-off-by: Thomas Guillem <[email protected]>
1 parent f4b2930 commit 5a7b99d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/input/input.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
423423
*psz_end = ',';
424424

425425
p_seekpoint = vlc_seekpoint_New();
426+
427+
if( unlikely( p_seekpoint == NULL ) )
428+
break;
429+
426430
while( (psz_end = strchr( psz_start, ',' ) ) )
427431
{
428432
*psz_end = 0;

0 commit comments

Comments
 (0)