commit | d55d8dac45dc60cb2cc9e599d3e89532db0cfc39 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Feb 07 07:29:43 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Feb 07 07:29:43 2015 +0000 |
tree | d5c3c701d28f94108722435ae34e9677f17e3bdb | |
parent | 8c0a0db1ad217f3238e31c291afa6b5e6a6fc98d [diff] | |
parent | 5e6b9141c11ebfd809acb69c7c672c6612334359 [diff] |
Merge "prevent ioctl_init() to write outside buffer"
diff --git a/cryptfs.c b/cryptfs.c index dee6bac..91879e3 100644 --- a/cryptfs.c +++ b/cryptfs.c
@@ -327,7 +327,7 @@ io->version[2] = 0; io->flags = flags; if (name) { - strncpy(io->name, name, sizeof(io->name)); + strlcpy(io->name, name, sizeof(io->name)); } }