From: Robert Richter Date: Wed, 7 Dec 2011 09:02:52 +0000 (+0100) Subject: perf tools: Fix out-of-bound access to struct perf_session X-Git-Tag: v3.3-rc1~192^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002c4fd92d772becf8745b9cbcebe5c95fe6dad0;p=pandora-kernel.git perf tools: Fix out-of-bound access to struct perf_session If filename is NULL there is an out-of-bound access to struct perf_session if it would be used with perf_session__open(). Shouldn't actually happen in current implementation as filename is always !NULL. Fixing this by always null-terminating filename. Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1323248577-11268-3-git-send-email-robert.richter@amd.com Signed-off-by: Robert Richter Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed