[vlc-commits] core/input: check for allocation error during bookmark parsing

Filip Roséen git at videolan.org
Sun Jun 5 17:02:45 CEST 2016


vlc | branch: master | Filip Roséen <filip at videolabs.io> | 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 <thomas at gllm.fr>

> 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;



More information about the vlc-commits mailing list