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
878f0a0d
Commit
878f0a0d
authored
Apr 01, 2007
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [18847]
Fix out-of-bound read in switcher
parent
6f91f1d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/stream_out/switcher.c
modules/stream_out/switcher.c
+3
-2
No files found.
modules/stream_out/switcher.c
View file @
878f0a0d
...
@@ -649,12 +649,13 @@ static int UnpackFromFile( sout_stream_t *p_stream, const char *psz_file,
...
@@ -649,12 +649,13 @@ static int UnpackFromFile( sout_stream_t *p_stream, const char *psz_file,
static
void
NetCommand
(
sout_stream_t
*
p_stream
)
static
void
NetCommand
(
sout_stream_t
*
p_stream
)
{
{
sout_stream_sys_t
*
p_sys
=
p_stream
->
p_sys
;
sout_stream_sys_t
*
p_sys
=
p_stream
->
p_sys
;
char
psz_buffer
[
1
0
];
char
psz_buffer
[
1
1
];
int
i_len
=
net_ReadNonBlock
(
p_stream
,
p_sys
->
i_fd
,
NULL
,
(
uint8_t
*
)
&
psz_buffer
[
0
],
int
i_len
=
net_ReadNonBlock
(
p_stream
,
p_sys
->
i_fd
,
NULL
,
(
uint8_t
*
)
&
psz_buffer
[
0
],
sizeof
(
psz_buffer
),
0
);
sizeof
(
psz_buffer
)
-
1
,
0
);
if
(
i_len
>
0
)
if
(
i_len
>
0
)
{
{
psz_buffer
[
i_len
]
=
'\0'
;
int
i_cmd
=
strtol
(
psz_buffer
,
NULL
,
0
);
int
i_cmd
=
strtol
(
psz_buffer
,
NULL
,
0
);
if
(
i_cmd
<
-
1
||
i_cmd
>
p_sys
->
i_nb_pictures
)
if
(
i_cmd
<
-
1
||
i_cmd
>
p_sys
->
i_nb_pictures
)
{
{
...
...
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