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
d9d659fc
Commit
d9d659fc
authored
23 years ago
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed array over-run bug in intf_MsgUnsub
parent
1aca1d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/interface/intf_msg.c
src/interface/intf_msg.c
+10
-3
No files found.
src/interface/intf_msg.c
View file @
d9d659fc
...
...
@@ -4,7 +4,7 @@
* interface, such as message output. See config.h for output configuration.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: intf_msg.c,v 1.4
5 2002/02/20 05:56:18 sam
Exp $
* $Id: intf_msg.c,v 1.4
6 2002/02/23 21:31:44 gbazin
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -142,7 +142,7 @@ intf_subscription_t *intf_MsgSub( void )
}
/*****************************************************************************
* intf_Msg
S
ub: unsubscribe from the message queue.
* intf_Msg
Uns
ub: unsubscribe from the message queue.
*****************************************************************************/
void
intf_MsgUnsub
(
intf_subscription_t
*
p_sub
)
{
...
...
@@ -150,6 +150,13 @@ void intf_MsgUnsub( intf_subscription_t *p_sub )
vlc_mutex_lock
(
&
msg_bank
.
lock
);
/* Sanity check */
if
(
!
msg_bank
.
i_sub
)
{
intf_ErrMsg
(
"intf error: no subscriber in the list"
);
return
;
}
/* Look for the appropriate subscription */
for
(
i_index
=
0
;
i_index
<
msg_bank
.
i_sub
;
i_index
++
)
{
...
...
@@ -167,7 +174,7 @@ void intf_MsgUnsub( intf_subscription_t *p_sub )
}
/* Remove this subscription */
for
(
;
i_index
<
msg_bank
.
i_sub
;
i_index
++
)
for
(
;
i_index
<
(
msg_bank
.
i_sub
-
1
)
;
i_index
++
)
{
msg_bank
.
pp_sub
[
i_index
]
=
msg_bank
.
pp_sub
[
i_index
+
1
];
}
...
...
This diff is collapsed.
Click to expand it.
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