mirror of
https://github.com/videolan/vlc.git
synced 2024-11-24 10:23:27 +08:00
demux: fix NULL deref on invalid redirection
This commit is contained in:
parent
4768fb3d6b
commit
86dff7e0bc
@ -314,8 +314,12 @@ demux_t *input_DemuxNew( vlc_object_t *obj, const char *access_name,
|
||||
if( stream->psz_url != NULL )
|
||||
{
|
||||
path = strstr( stream->psz_url, "://" );
|
||||
if( path != NULL )
|
||||
path += 3;
|
||||
if( path == NULL )
|
||||
{
|
||||
stream_Delete( stream );
|
||||
goto out;
|
||||
}
|
||||
path += 3;
|
||||
}
|
||||
|
||||
demux = demux_NewAdvanced( obj, input, access_name, demux_name, path,
|
||||
|
Loading…
Reference in New Issue
Block a user