Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dc0b32fb
Commit
dc0b32fb
authored
Jul 11, 2003
by
Alan Cox
Committed by
Steve French
Jul 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix security leak in maestro.c
parent
c294900a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sound/oss/maestro.c
sound/oss/maestro.c
+4
-4
No files found.
sound/oss/maestro.c
View file @
dc0b32fb
...
@@ -2024,8 +2024,8 @@ static int mixer_ioctl(struct ess_card *card, unsigned int cmd, unsigned long ar
...
@@ -2024,8 +2024,8 @@ static int mixer_ioctl(struct ess_card *card, unsigned int cmd, unsigned long ar
VALIDATE_CARD
(
card
);
VALIDATE_CARD
(
card
);
if
(
cmd
==
SOUND_MIXER_INFO
)
{
if
(
cmd
==
SOUND_MIXER_INFO
)
{
mixer_info
info
;
mixer_info
info
;
str
l
cpy
(
info
.
id
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
id
));
str
n
cpy
(
info
.
id
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
id
));
str
l
cpy
(
info
.
name
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
name
));
str
n
cpy
(
info
.
name
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
name
));
info
.
modify_counter
=
card
->
mix
.
modcnt
;
info
.
modify_counter
=
card
->
mix
.
modcnt
;
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -2033,8 +2033,8 @@ static int mixer_ioctl(struct ess_card *card, unsigned int cmd, unsigned long ar
...
@@ -2033,8 +2033,8 @@ static int mixer_ioctl(struct ess_card *card, unsigned int cmd, unsigned long ar
}
}
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
_old_mixer_info
info
;
_old_mixer_info
info
;
str
l
cpy
(
info
.
id
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
id
));
str
n
cpy
(
info
.
id
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
id
));
str
l
cpy
(
info
.
name
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
name
));
str
n
cpy
(
info
.
name
,
card_names
[
card
->
card_type
],
sizeof
(
info
.
name
));
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
...
...
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