[vlc-devel] [PATCH] core/input: check for allocation error during	bookmark parsing
    Filip Roséen 
    filip at videolabs.io
       
    Sun Jun  5 16:46:30 CEST 2016
    
    
  
---
 src/input/input.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/src/input/input.c b/src/input/input.c
index afd40d0..a537dcb 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;
-- 
2.8.3
    
    
More information about the vlc-devel
mailing list