summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-12-07 13:02:52 +0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-12-23 22:57:41 +0400
commit002c4fd92d772becf8745b9cbcebe5c95fe6dad0 (patch)
treec1e740bbefb3a91ee64315a419835cd28540bb35 /mm
parentf7a8a1336416883dc0ccd96c17c604e34de61c25 (diff)
downloadlinux-002c4fd92d772becf8745b9cbcebe5c95fe6dad0.tar.xz
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 <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1323248577-11268-3-git-send-email-robert.richter@amd.com Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions