Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a276d9aa
Commit
a276d9aa
authored
Mar 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: fix stack overflow if user feeds an overly large MRL
parent
22a10cf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/input/input.c
src/input/input.c
+7
-2
No files found.
src/input/input.c
View file @
a276d9aa
...
...
@@ -2276,13 +2276,15 @@ static int InputSourceInit( input_thread_t *p_input,
input_source_t
*
in
,
const
char
*
psz_mrl
,
const
char
*
psz_forced_demux
)
{
char
psz_dup
[
strlen
(
psz_mrl
)
+
1
];
const
char
*
psz_access
;
const
char
*
psz_demux
;
char
*
psz_path
;
double
f_fps
;
strcpy
(
psz_dup
,
psz_mrl
);
char
*
psz_dup
=
strdup
(
psz_mrl
);
if
(
psz_dup
==
NULL
)
goto
error
;
/* Split uri */
input_SplitMRL
(
&
psz_access
,
&
psz_demux
,
&
psz_path
,
psz_dup
);
...
...
@@ -2553,6 +2555,8 @@ static int InputSourceInit( input_thread_t *p_input,
}
}
free
(
psz_dup
);
/* Set record capabilities */
if
(
demux_Control
(
in
->
p_demux
,
DEMUX_CAN_RECORD
,
&
in
->
b_can_stream_record
)
)
in
->
b_can_stream_record
=
false
;
...
...
@@ -2600,6 +2604,7 @@ error:
if
(
in
->
p_access
)
access_Delete
(
in
->
p_access
);
free
(
psz_dup
);
return
VLC_EGENERIC
;
}
...
...
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