You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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. [email@example.com: revert getdelays.c part due to missing bsd/string.h] Signed-off-by: Kees Cook <firstname.lastname@example.org> Acked-by: Greg Kroah-Hartman <email@example.com> [staging] Acked-by: Rafael J. Wysocki <firstname.lastname@example.org> [acpi] Cc: Martin Schwidefsky <email@example.com> Cc: Heiko Carstens <firstname.lastname@example.org> Cc: Ursula Braun <email@example.com> Cc: Frank Blaschka <firstname.lastname@example.org> Cc: Richard Weinberger <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
|8 years ago|
|Makefile||13 years ago|
|hppfs.c||8 years ago|