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

Hannes Domani git at videolan.org
Thu Aug 27 18:49:58 CEST 2015


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

access: rar: fail gracefully when psz_url==NULL

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

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

 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 0935a97..399634e 100644
--- a/modules/access/rar/stream.c
+++ b/modules/access/rar/stream.c
@@ -61,6 +61,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