From: Thomas Jarosch Date: Fri, 14 Oct 2011 17:00:47 +0000 (+0200) Subject: perf buildid: Fix possible unterminated readlink() result buffer X-Git-Tag: v3.2-rc1~163^2~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3c5b26d08569ed80e10d3e02d3c997ed1e6e7c;p=pandora-kernel.git perf buildid: Fix possible unterminated readlink() result buffer The readlink function doesn't guarantee that a '\0' will be put at the end of the provided buffer if there is no space left. No need to do "buf[len] = '\0';" since the buffer is allocated with zalloc(). Link: http://lkml.kernel.org/r/4E986ABF.9040706@intra2net.com Signed-off-by: Thomas Jarosch Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed