[vlc-commits] core/input: check for allocation error during bookmark parsing
Filip Roséen
git at videolan.org
Sun Jun 5 16:48:41 CEST 2016
vlc | branch: master | Filip Roséen <filip at videolabs.io> | 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 <thomas at gllm.fr>
> 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;
More information about the vlc-commits
mailing list