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
1bb902d8
Commit
1bb902d8
authored
Jul 31, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix 2 byte data leak due to padding
parent
d9699f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/stat.c
fs/stat.c
+2
-1
No files found.
fs/stat.c
View file @
1bb902d8
...
@@ -106,7 +106,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
...
@@ -106,7 +106,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
{
{
static
int
warncount
=
5
;
static
int
warncount
=
5
;
struct
__old_kernel_stat
tmp
;
struct
__old_kernel_stat
tmp
;
if
(
warncount
>
0
)
{
if
(
warncount
>
0
)
{
warncount
--
;
warncount
--
;
printk
(
KERN_WARNING
"VFS: Warning: %s using old stat() call. Recompile your binary.
\n
"
,
printk
(
KERN_WARNING
"VFS: Warning: %s using old stat() call. Recompile your binary.
\n
"
,
...
@@ -116,6 +116,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
...
@@ -116,6 +116,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
warncount
=
0
;
warncount
=
0
;
}
}
memset
(
&
tmp
,
0
,
sizeof
(
struct
__old_kernel_stat
));
tmp
.
st_dev
=
stat
->
dev
;
tmp
.
st_dev
=
stat
->
dev
;
tmp
.
st_ino
=
stat
->
ino
;
tmp
.
st_ino
=
stat
->
ino
;
tmp
.
st_mode
=
stat
->
mode
;
tmp
.
st_mode
=
stat
->
mode
;
...
...
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