* [merged] fs-proc-kcorec-using-strlcpy-instead-of-strncpy.patch removed from -mm tree
@ 2013-07-08 19:36 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2013-07-08 19:36 UTC (permalink / raw)
To: mm-commits, zhaohongjiang
Subject: [merged] fs-proc-kcorec-using-strlcpy-instead-of-strncpy.patch removed from -mm tree
To: zhaohongjiang@huawei.com,mm-commits@vger.kernel.org
From: akpm@linux-foundation.org
Date: Mon, 08 Jul 2013 12:36:03 -0700
The patch titled
Subject: fs/proc/kcore.c: using strlcpy() instead of strncpy()
has been removed from the -mm tree. Its filename was
fs-proc-kcorec-using-strlcpy-instead-of-strncpy.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Zhao Hongjiang <zhaohongjiang@huawei.com>
Subject: fs/proc/kcore.c: using strlcpy() instead of strncpy()
For NUL terminated string, set '\0' at the end.
Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/proc/kcore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN fs/proc/kcore.c~fs-proc-kcorec-using-strlcpy-instead-of-strncpy fs/proc/kcore.c
--- a/fs/proc/kcore.c~fs-proc-kcorec-using-strlcpy-instead-of-strncpy
+++ a/fs/proc/kcore.c
@@ -408,7 +408,7 @@ static void elf_kcore_store_hdr(char *bu
prpsinfo.pr_zomb = 0;
strcpy(prpsinfo.pr_fname, "vmlinux");
- strncpy(prpsinfo.pr_psargs, saved_command_line, ELF_PRARGSZ);
+ strlcpy(prpsinfo.pr_psargs, saved_command_line, sizeof(prpsinfo.pr_psargs));
nhdr->p_filesz += notesize(¬es[1]);
bufp = storenote(¬es[1], bufp);
_
Patches currently in -mm which might be from zhaohongjiang@huawei.com are
origin.patch
linux-next.patch
drivers-infiniband-core-cmc-convert-to-using-idr_alloc_cyclic.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-08 19:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-08 19:36 [merged] fs-proc-kcorec-using-strlcpy-instead-of-strncpy.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.