kernel_optimize_test/drivers/acpi
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
..
acpica
apei Miscellaneous fixes for ACPI EINJ (error injection) code. 2013-06-19 13:54:04 +02:00
ac.c
acpi_i2c.c
acpi_ipmi.c
acpi_lpss.c ACPI / LPSS: Power up LPSS devices during enumeration 2013-06-20 00:49:06 +02:00
acpi_memhotplug.c
acpi_pad.c
acpi_platform.c
battery.c
bgrt.c
blacklist.c
bus.c
button.c
cm_sbs.c
container.c
custom_method.c
debugfs.c
device_pm.c ACPI / LPSS: Power up LPSS devices during enumeration 2013-06-20 00:49:06 +02:00
dock.c ACPI / dock / PCI: Synchronous handling of dock events for PCI devices 2013-06-24 11:22:53 +02:00
ec_sys.c
ec.c
event.c
fan.c
glue.c
hed.c
internal.h ACPI / dock: Initialize ACPI dock subsystem upfront 2013-06-23 00:59:55 +02:00
Kconfig
Makefile
numa.c
nvs.c
osl.c
pci_irq.c
pci_link.c
pci_root.c
pci_slot.c
power.c ACPI / PM: Fix error code path for power resources initialization 2013-06-20 00:47:55 +02:00
proc.c
processor_core.c
processor_driver.c
processor_idle.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
reboot.c
resource.c ACPI / resources: call acpi_get_override_irq() only for legacy IRQ resources 2013-06-19 23:55:59 +02:00
sbs.c
sbshc.c
sbshc.h
scan.c ACPI / dock: Initialize ACPI dock subsystem upfront 2013-06-23 00:59:55 +02:00
sleep.c
sleep.h
sysfs.c clean up scary strncpy(dst, src, strlen(src)) uses 2013-07-03 16:07:41 -07:00
tables.c
thermal.c
utils.c
video_detect.c
video.c
wakeup.c