projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9d9ac5
)
smack: do not beyond ARRAY_SIZE of data
author
Roel Kluin
<roel.kluin@gmail.com>
Thu, 21 May 2009 16:42:54 +0000
(18:42 +0200)
committer
James Morris
<jmorris@namei.org>
Fri, 22 May 2009 02:34:48 +0000
(12:34 +1000)
Do not go beyond ARRAY_SIZE of data
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/smack/smackfs.c
patch
|
blob
|
blame
|
history
diff --git
a/security/smack/smackfs.c
b/security/smack/smackfs.c
index 904af3483286f7bfeb676debb03eadba01f75e4f..8d3c2a051c7b13eb338a370f9e59a7fc9597711f 100644
(file)
--- a/
security/smack/smackfs.c
+++ b/
security/smack/smackfs.c
@@
-776,7
+776,7
@@
static ssize_t smk_write_netlbladdr(struct file *file, const char __user *buf,
struct sockaddr_in newname;
char smack[SMK_LABELLEN];
char *sp;
- char data[SMK_NETLBLADDRMAX];
+ char data[SMK_NETLBLADDRMAX
+ 1
];
char *host = (char *)&newname.sin_addr.s_addr;
int rc;
struct netlbl_audit audit_info;