]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] strndup_user()
authorDavi Arnaut <davi.arnaut@gmail.com>
Fri, 24 Mar 2006 11:18:42 +0000 (03:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:31 +0000 (07:33 -0800)
commit6ff851e87ae0bc5ecf6952e2ca9c10989dce987d
treef93592ca47f2412aa0cce3ce4c116d1678a42239
parentd3b4eb8ce6d2d7c68e1134c54525edea77d991b9
[PATCH] strndup_user()

This patch series creates a strndup_user() function to easy copying C strings
from userspace.  Also we avoid common pitfalls like userspace modifying the
final \0 after the strlen_user().

Signed-off-by: Davi Arnaut <davi.arnaut@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/string.h
mm/util.c