vlc | branch: master | Filip Roséen <[email protected]> | Sun Jun  5 16:46:30 
2016 +0200| [5a7b99d19a4fe715e8de7cde15b49976616f554f] | committer: 
Jean-Baptiste Kempf

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=5a7b99d19a4fe715e8de7cde15b49976616f554f
---

 src/input/input.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index 325c075..22958fd 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

Reply via email to