Commit 86dff7e0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

demux: fix NULL deref on invalid redirection

parent 4768fb3d
...@@ -314,8 +314,12 @@ demux_t *input_DemuxNew( vlc_object_t *obj, const char *access_name, ...@@ -314,8 +314,12 @@ demux_t *input_DemuxNew( vlc_object_t *obj, const char *access_name,
if( stream->psz_url != NULL ) if( stream->psz_url != NULL )
{ {
path = strstr( stream->psz_url, "://" ); path = strstr( stream->psz_url, "://" );
if( path != NULL ) if( path == NULL )
path += 3; {
stream_Delete( stream );
goto out;
}
path += 3;
} }
demux = demux_NewAdvanced( obj, input, access_name, demux_name, path, demux = demux_NewAdvanced( obj, input, access_name, demux_name, path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment