Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
13ba7e5e
Commit
13ba7e5e
authored
Aug 28, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: fix NULL dereference
parent
93f8ec56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+7
-3
No files found.
modules/demux/avformat/demux.c
View file @
13ba7e5e
...
...
@@ -169,10 +169,14 @@ int OpenDemux( vlc_object_t *p_this )
psz_url
=
strdup
(
p_demux
->
psz_file
);
else
{
if
(
asprintf
(
&
psz_url
,
"%s://%s"
,
p_demux
->
psz_access
,
p_demux
->
psz_location
)
==
-
1
)
return
VLC_ENOMEM
;
if
(
asprintf
(
&
psz_url
,
"%s://%s"
,
p_demux
->
psz_access
,
p_demux
->
psz_location
)
==
-
1
)
psz_url
=
NULL
;
}
msg_Dbg
(
p_demux
,
"trying url: %s"
,
psz_url
);
if
(
psz_url
!=
NULL
)
msg_Dbg
(
p_demux
,
"trying url: %s"
,
psz_url
);
/* Init Probe data */
pd
.
filename
=
psz_url
;
if
(
(
pd
.
buf_size
=
stream_Peek
(
p_demux
->
s
,
(
const
uint8_t
**
)
&
pd
.
buf
,
2048
+
213
)
)
<=
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment