[vlc-devel] [PATCH 45/48] hls: Prevent potential crash when computing relative url.
Hugo Beauzée-Luyssen
beauze.h at gmail.com
Mon Jan 9 16:16:54 CET 2012
---
modules/stream_filter/httplive.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 95657d4..0c0652f 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -486,6 +486,8 @@ static char *relative_URI(const char *uri, const char *parent_uri)
if (p != NULL)
return strdup(uri);
+ if ( parent_uri == NULL )
+ return NULL;
if (*uri == '/')
{
/* This url is relative to the root of the server */
--
1.7.8.3
More information about the vlc-devel
mailing list