vlc | branch: master | Filip Roséen <[email protected]> | Sun Jun 5 16:46:30 2016 +0200| [281bf70bf9a36d9fd60df0adbd3520630b27d80c] | committer: Thomas Guillem
core/input: check for allocation error during bookmark parsing Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=281bf70bf9a36d9fd60df0adbd3520630b27d80c --- src/input/input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input/input.c b/src/input/input.c index 5025b30..3592bf2 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
