From: Kees Cook Date: Fri, 25 Oct 2013 13:14:43 +0000 (-0700) Subject: kbuild: replace unbounded sprintf call in modpost X-Git-Tag: v3.13-rc1~74^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849464d1ba97a13b388fee9a69fbbeee175b349c;p=pandora-kernel.git kbuild: replace unbounded sprintf call in modpost The modpost tool could overflow its stack buffer if someone was running with an insane shell environment. Regardless, it's technically a bug, so this fixes it to truncate the string instead of seg-faulting. Found by Coverity. Signed-off-by: Kees Cook Signed-off-by: Michal Marek --- Reading git-diff-tree failed