From: Kees Cook Date: Wed, 2 Oct 2013 05:13:34 +0000 (-0700) Subject: sparc: fix ldom_reboot buffer overflow harder X-Git-Tag: v3.12-rc4~26^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20928bd3f08afb036c096d9559d581926b895918;p=pandora-kernel.git sparc: fix ldom_reboot buffer overflow harder The length argument to strlcpy was still wrong. It could overflow the end of full_boot_str by 5 bytes. Instead of strcat and strlcpy, just use snprint. Reported-by: Brad Spengler Signed-off-by: Kees Cook Signed-off-by: David S. Miller --- Reading git-diff-tree failed