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
a7e8d944
Commit
a7e8d944
authored
May 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLC_VariableSet: assume unsafe variable settings. Fixes #1371.
parent
e5501691
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/libvlc.c
src/libvlc.c
+6
-1
No files found.
src/libvlc.c
View file @
a7e8d944
...
...
@@ -188,7 +188,7 @@ int VLC_Destroy( int i_object )
}
/*****************************************************************************
* VLC_VariableSet: set a vlc variable
* VLC_VariableSet: set a
"safe"
vlc variable
*****************************************************************************/
int
VLC_VariableSet
(
int
i_object
,
char
const
*
psz_var
,
vlc_value_t
value
)
{
...
...
@@ -206,6 +206,11 @@ int VLC_VariableSet( int i_object, char const *psz_var, vlc_value_t value )
if
(
p_item
)
{
/* VLC_VariableSet is only used from the browser plugins, so we
* can pretty much assume that the input is _not_ trusted. */
if
(
!
p_item
->
b_safe
)
return
VLC_EGENERIC
;
switch
(
p_item
->
i_type
)
{
case
CONFIG_ITEM_BOOL
:
...
...
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