[vlc-commits] input: fix a crash when loading an invalid mrl

Ludovic Fauvet git at videolan.org
Tue Nov 8 02:42:33 CET 2011


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Oct 31 02:17:17 2011 +0100| [1575796ce7f14190594b9d14e27c88ae130cf8b5] | committer: Jean-Baptiste Kempf

input: fix a crash when loading an invalid mrl

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1575796ce7f14190594b9d14e27c88ae130cf8b5
---

 src/input/input.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index b43df74..a91c935 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -3115,6 +3115,9 @@ static void MRLSections( const char *p,
 
     int title_start, chapter_start, title_end, chapter_end;
 
+    if( !p )
+        return;
+
     if( *p != '-' )
         p = MRLSeekPoint( p, &title_start, &chapter_start );
     else



More information about the vlc-commits mailing list