OpenCloudOS-Kernel/drivers/staging/tidspbridge
Kees Cook 096a8aac6b clean up scary strncpy(dst, src, strlen(src)) uses
Fix various weird constructions of strncpy(dst, src, strlen(src)).

Length limits should be about the space available in the destination,
not repurposed as a method to either always include or always exclude a
trailing NULL byte.  Either the NULL should always be copied (using
strlcpy), or it should not be copied (using something like memcpy).
Readable code should not depend on the weird behavior of strncpy when it
hits the length limit.  Better to avoid the anti-pattern entirely.

[akpm@linux-foundation.org: revert getdelays.c part due to missing bsd/string.h]
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>	[staging]
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>	[acpi]
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ursula Braun <ursula.braun@de.ibm.com>
Cc: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-07-03 16:07:41 -07:00
..
Documentation staging: tidspbridge: Fix typos. 2012-08-13 19:06:59 -07:00
core Staging: tidspbridge: _tiomap.h: fixed indentation warning. 2013-05-21 19:57:39 -07:00
dynload staging: tidspbridge: dynload: reloc.c: checkpatch.pl cleanup 2012-11-13 13:10:39 -08:00
gen staging: tidspbridge: eliminate uuid_uuid_to_string 2012-08-13 19:06:59 -07:00
hw staging: tidspbridge: delete unused mmu functions 2012-10-24 16:31:32 -07:00
include/dspbridge mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
pmgr staging: Remove unnecessary OOM messages 2013-02-11 10:10:33 -08:00
rmgr clean up scary strncpy(dst, src, strlen(src)) uses 2013-07-03 16:07:41 -07:00
Kconfig mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
Makefile staging: tidspbridge: Rename module from bridgedriver to tidspbridge 2012-02-09 09:37:11 -08:00
TODO