Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
linux
linux-davinci
Commits
e0182909
Commit
e0182909
authored
May 18, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] proc_loginuid_write() uses simple_strtoul() on non-terminated array
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ac03221a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/proc/base.c
fs/proc/base.c
+3
-2
No files found.
fs/proc/base.c
View file @
e0182909
...
...
@@ -1019,8 +1019,8 @@ static ssize_t proc_loginuid_write(struct file * file, const char __user * buf,
if
(
current
!=
task
)
return
-
EPERM
;
if
(
count
>
PAGE_SIZE
)
count
=
PAGE_SIZE
;
if
(
count
>
=
PAGE_SIZE
)
count
=
PAGE_SIZE
-
1
;
if
(
*
ppos
!=
0
)
{
/* No partial writes. */
...
...
@@ -1033,6 +1033,7 @@ static ssize_t proc_loginuid_write(struct file * file, const char __user * buf,
if
(
copy_from_user
(
page
,
buf
,
count
))
goto
out_free_page
;
page
[
count
]
=
'\0'
;
loginuid
=
simple_strtoul
(
page
,
&
tmp
,
10
);
if
(
tmp
==
page
)
{
length
=
-
EINVAL
;
...
...
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