Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
613cd5d
)
Branch HEAD
author
adilger
<adilger>
Wed, 12 Mar 2008 10:24:31 +0000
(10:24 +0000)
committer
adilger
<adilger>
Wed, 12 Mar 2008 10:24:31 +0000
(10:24 +0000)
Fix relatively harmless buffer overflow in "lfs df".
b=15183
i=komal.nawandar
i=green
lustre/utils/lfs.c
patch
|
blob
|
history
diff --git
a/lustre/utils/lfs.c
b/lustre/utils/lfs.c
index
8d8d0d8
..
94454d6
100644
(file)
--- a/
lustre/utils/lfs.c
+++ b/
lustre/utils/lfs.c
@@
-736,7
+736,8
@@
static int showdf(char *mntdir, struct obd_statfs *stat,
long long avail, used, total;
double ratio = 0;
char *suffix = "KMGTPEZY";
- char tbuf[10], ubuf[10], abuf[10], rbuf[10];
+ /* Note if we have >2^64 bytes/fs these buffers will need to be grown */
+ char tbuf[20], ubuf[20], abuf[20], rbuf[20];
if (!uuid || !stat)
return -EINVAL;