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
26985f82
Commit
26985f82
authored
Oct 02, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: Don't allow SetSubtitleES to access val_list.p_list->p_values[i_es] with i_es = -1
parent
d66e529d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
modules/control/dbus.c
modules/control/dbus.c
+9
-10
No files found.
modules/control/dbus.c
View file @
26985f82
...
@@ -991,17 +991,16 @@ DBUS_METHOD( SetSubtitleES )
...
@@ -991,17 +991,16 @@ DBUS_METHOD( SetSubtitleES )
int
i_ret
=
-
1
;
int
i_ret
=
-
1
;
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
if
(
val_list
.
p_list
->
i_count
==
0
)
if
(
(
i_es
<
0
)
||
(
i_es
>=
val_list
.
p_list
->
i_count
)
||
(
val_list
.
p_list
->
i_count
==
0
)
)
i_es
=
-
1
;
i_es
=
-
1
;
else
if
(
(
i_es
<
0
)
||
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
{
i_es
=
-
1
;
newval
=
val_list
.
p_list
->
p_values
[
i_es
];
newval
=
val_list
.
p_list
->
p_values
[
i_es
];
i_ret
=
var_Set
(
p_input
,
"spu-es"
,
newval
);
i_ret
=
var_Set
(
p_input
,
"spu-es"
,
newval
);
if
(
i_ret
<
0
)
if
(
i_ret
<
0
)
i_es
=
-
1
;
i_es
=
-
1
;
}
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
}
}
pl_Release
(
(
vlc_object_t
*
)
p_this
);
pl_Release
(
(
vlc_object_t
*
)
p_this
);
...
...
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