[vlc-commits] access: rar: fail gracefully when psz_url==NULL

Hannes Domani git at videolan.org
Wed Oct 21 18:50:04 CEST 2015


vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 27 16:18:21 2015 +0200| [6e43200f5407aba3cba4d46d4d8b0d00833ff041] | committer: Jean-Baptiste Kempf

access: rar: fail gracefully when psz_url==NULL

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit aae71c2b9af3ecd08e2483050ddd02e2d1b47515)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=6e43200f5407aba3cba4d46d4d8b0d00833ff041
---

 modules/access/rar/stream.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/rar/stream.c b/modules/access/rar/stream.c
index 7929d97..d5578b1 100644
--- a/modules/access/rar/stream.c
+++ b/modules/access/rar/stream.c
@@ -66,6 +66,9 @@ int RarStreamOpen(vlc_object_t *object)
 {
     stream_t *s = (stream_t*)object;
 
+    if( s->psz_url == NULL )
+        return VLC_EGENERIC;
+
     if (RarProbe(s->p_source))
         return VLC_EGENERIC;
 



More information about the vlc-commits mailing list