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
9a16e576
Commit
9a16e576
authored
Sep 20, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/duplicate.c: fixed array overflow.
parent
0fc16f66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/stream_out/duplicate.c
modules/stream_out/duplicate.c
+4
-4
No files found.
modules/stream_out/duplicate.c
View file @
9a16e576
...
...
@@ -2,7 +2,7 @@
* duplicate.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: duplicate.c,v 1.
2 2003/05/19 11:38:05
gbazin Exp $
* $Id: duplicate.c,v 1.
3 2003/09/20 23:46:01
gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -173,7 +173,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
for
(
i_stream
=
0
;
i_stream
<
p_sys
->
i_nb_streams
;
i_stream
++
)
{
if
(
id
->
pp_ids
[
i_stream
]
)
if
(
id
->
i_nb_ids
>
i_stream
&&
id
->
pp_ids
[
i_stream
]
)
{
p_sys
->
pp_streams
[
i_stream
]
->
pf_del
(
p_sys
->
pp_streams
[
i_stream
],
id
->
pp_ids
[
i_stream
]
);
...
...
@@ -195,7 +195,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
{
sout_buffer_t
*
p_dup
;
if
(
id
->
pp_ids
[
i_stream
]
)
if
(
id
->
i_nb_ids
>
i_stream
&&
id
->
pp_ids
[
i_stream
]
)
{
p_dup
=
sout_BufferDuplicate
(
p_stream
->
p_sout
,
p_buffer
);
...
...
@@ -206,7 +206,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
}
i_stream
=
p_sys
->
i_nb_streams
-
1
;
if
(
id
->
pp_ids
[
i_stream
]
)
if
(
id
->
i_nb_ids
>
i_stream
&&
id
->
pp_ids
[
i_stream
]
)
{
p_sys
->
pp_streams
[
i_stream
]
->
pf_send
(
p_sys
->
pp_streams
[
i_stream
],
id
->
pp_ids
[
i_stream
],
...
...
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