projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb569d
)
hostfs: dumb (and usually harmless) tpyo - strncpy instead of strlcpy
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 18 Aug 2010 10:18:57 +0000
(06:18 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 18 Aug 2010 10:18:57 +0000
(06:18 -0400)
... not harmless in this case - we have a string in the end of buffer
already.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index dd1e55535a4e8a65e4405a2419d1a9bcde389f8c..77c4f6ee6c4074f4f536f2abb3236131632f3b22 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-104,7
+104,7
@@
static char *__dentry_name(struct dentry *dentry, char *name)
__putname(name);
return NULL;
}
- str
n
cpy(name, root, PATH_MAX);
+ str
l
cpy(name, root, PATH_MAX);
if (len > p - name) {
__putname(name);
return NULL;